@grabjs/superapp-sdk
    Preparing search index...

    Type Alias GetAuthorizationArtifactsResponse

    GetAuthorizationArtifactsResponse: BridgeResponse<
        200
        | 204
        | 400,
        GetAuthorizationArtifactsResult,
    >

    Response when retrieving stored authorization artifacts.

    This response can have the following status codes:

    • 200: All artifacts present. The result contains the PKCE artifacts needed for token exchange.
    • 204: No artifacts yet - authorization has not been initiated.
    • 400: Inconsistent state - possible data corruption in storage.

    Success response (200) - all artifacts present:

    {
    status_code: 200,
    result: {
    state: 'csrf-state-xyz789',
    codeVerifier: 'code-verifier-123',
    nonce: 'nonce-abc',
    redirectUri: 'https://your-app.com/callback'
    }
    }

    No content response (204) - no artifacts:

    { status_code: 204 }
    

    Bad request response (400) - inconsistent state:

    {
    status_code: 400,
    error: 'Inconsistent authorization artifacts in storage'
    }