Server Authentication
Client-side
const jwt = await user.createClientAuthorization({
username: await user.getUsername(),
foo: "bar"
});
// Securely send the jwt string to your serverServer-side
import { verifyClientAuthorization } from '@tonomy/tonomy-id-sdk'
// receive JWT string from the client
const verifiedUser = await verifyClientAuthorization(jwt);Last updated