Softeo / Guides / Signed KYC attestations

Signed KYC attestations

A KYC result your app can check by itself, offline, in a few lines: what a signed attestation is, what Softeo's contains, and how to verify one properly.

Updated 28 October 2026.

A signed KYC attestation is a short-lived token, here a JSON Web Token signed with Ed25519 (EdDSA), stating that a user passed identity verification. Your backend checks the signature against the issuer's public keys (a JWKS), the issuer, the audience and the expiry. If all hold, the result is genuine and meant for you, without a webhook and without trusting the user's browser.

Why sign the result

When a user comes back from a verification flow, the redirect passes through their browser, and anything in a URL can be edited. A plain ?result=verified proves nothing. A signed token can only be made by the holder of the private key, so your app can trust it as long as the signature checks out.

What Softeo's token contains

ClaimMeaning
issThe issuer: https://softeolabs.com.
audYour client id. A token issued to another app, or a sandbox token, never carries your live id.
subThe verification id.
refYour own reference for the user, if you sent one.
kyc_verifiedAlways true: only passed checks get a token.
age_overThe minimum age the user was checked against, for example 18. No date of birth.
iat, expIssued at and expiry. The token lives for minutes: check it when the user returns.

The header carries alg: "EdDSA" and a kid naming the key in the JWKS at https://softeolabs.com/.well-known/jwks.json.

Verify it in Node.js

import { createRemoteJWKSet, jwtVerify } from 'jose';

const jwks = createRemoteJWKSet(new URL('https://softeolabs.com/.well-known/jwks.json'));

export async function checkKyc(token, expectedRef) {
  const { payload } = await jwtVerify(token, jwks, {
    issuer: 'https://softeolabs.com',
    audience: process.env.SOFTEO_CLIENT_ID,
    algorithms: ['EdDSA'],
  });
  if (payload.kyc_verified !== true) throw new Error('not verified');
  if (payload.ref !== expectedRef) throw new Error('token is for another user');
  return payload;
}

The JWKS is cached by the library, so most checks need no network call. Any JWT library with EdDSA support works the same way in other languages.

Mistakes to avoid

Without a webhook

The token arrives with the user, so the usual path needs no inbound endpoint on your side. If the user never comes back, for example because they closed the tab, read the verification by API with GET /v1/verifications/:id; a passed check returns a fresh token.

Questions

Why EdDSA and not RS256?

Ed25519 keys and signatures are small and fast to check, the algorithm has no parameter choices to get wrong, and it is widely supported by JWT libraries.

Can I verify the token without calling Softeo?

Yes. Once you have the public keys from the JWKS, verification is local.

Does the token contain personal data?

No name, date of birth or document data. It carries the verification id, your own reference and the age threshold.