Manages avatar tokens operations with user exclusive token storage and issuance.

interface IAvatarTokenManager {
    beforeTokenRequest: EventHandler<
        { request: ContentTokenRequest },
        IAvatarTokenManager,
    >;
    onTokenInfoSet: EventHandler<
        { tokenInfo: IAccessTokenInfo },
        IAvatarTokenManager,
    >;
    getTokenInfo(): Promise<[null | IAccessTokenInfo, ValidationResult]>;
    reissueToken(): Promise<[null | IAccessTokenInfo, ValidationResult]>;
    setTokenInfo(tokenInfo: null | IAccessTokenInfo): Promise<void>;
}

Implemented by

Properties

beforeTokenRequest: EventHandler<
    { request: ContentTokenRequest },
    IAvatarTokenManager,
>

Invokes before token request is sent. Allows modifying request.

onTokenInfoSet: EventHandler<
    { tokenInfo: IAccessTokenInfo },
    IAvatarTokenManager,
>

Invokes when the new token info is set.

Methods

  • Sets provided token info as current.

    Parameters

    Returns Promise<void>

MMNEPVFCICPMFPCPTTAAATR