Member Junction
    Preparing search index...

    Standardized user information returned by all auth providers

    Maps provider-specific claims to a consistent structure. Each provider implements extractUserInfoInternal() to convert their claim format to this standard structure.

    const userInfo = await firstValueFrom(this.authBase.getUserInfo());
    console.log(`Welcome ${userInfo.name}!`);
    console.log(`Email: ${userInfo.email}`);
    interface StandardUserInfo {
        email: string;
        emailVerified?: boolean;
        familyName?: string;
        givenName?: string;
        id: string;
        locale?: string;
        name: string;
        pictureUrl?: string;
        preferredUsername?: string;
    }
    Index

    Properties

    email: string

    User's email address

    emailVerified?: boolean

    Email verification status True if the auth provider has verified the user's email

    familyName?: string

    User's family name / last name

    givenName?: string

    User's given name / first name

    id: string

    Unique user identifier from the auth provider (e.g., Auth0: user.sub, MSAL: account.localAccountId)

    locale?: string

    User's locale/language preference (e.g., "en-US", "fr-FR")

    name: string

    User's full display name

    pictureUrl?: string

    URL to user's profile picture (if available)

    preferredUsername?: string

    Preferred username or handle Often the same as email for most providers