Interface CognitoAuth

interface CognitoAuth {
    type: "cognito";
    jwtToken: string | () => string | Promise<string>;
}

Properties

Properties

type: "cognito"
jwtToken: string | () => string | Promise<string>

The Cognito User Pools JWT to attach as the Authorization header, or a function returning one (sync or async). Use the function form to refresh silently-expired tokens.