Read User

import authefyNodeClient from './path/to/@authefy/node-client';

await authefyNodeClient.user.read('ca10416e530f5f7bb7dfb02940143618')
// returns: User Object

User Object:

type User {
    id: string;
    externalId?: string;
    username: string;
    groups: string[];
    isEmailVerified: boolean;
    isVerified: boolean;
    details: Record<string, any>;
}

Last updated

Was this helpful?