Interface IFiefAuthStorage

Interface that should follow a class to implement storage for authentication data.

interface IFiefAuthStorage {
    clearCodeVerifier(): void;
    clearTokeninfo(): void;
    clearUserinfo(): void;
    getCodeVerifier(): null | string;
    getTokenInfo(): null | FiefTokenResponse;
    getUserinfo(): null | FiefUserInfo;
    setCodeVerifier(code): void;
    setTokenInfo(tokenInfo): void;
    setUserinfo(userinfo): void;
}

Methods

  • Remove PKCE code verifier from storage.

    Returns void

    See

    PKCE

  • Remove current token information from storage.

    Returns void

  • Remove current user information from storage.

    Returns void

  • Retrieve PKCE code verifier from storage, if any.

    Returns null | string

    See

    PKCE

  • Set a PKCE code verifier in storage.

    Parameters

    • code: string

      The code verifier to store.

    Returns void

    See

    PKCE

  • Store current token information in storage.

    Parameters

    Returns void

  • Store current user information in storage.

    Parameters

    Returns void