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

    Type Alias AuthorizeResponse

    AuthorizeResponse:
        | { status_code: 204 }
        | { error: string; status_code: 400 }
        | { error: string; status_code: 403 }
        | { error: string; status_code: 500 }
        | { error: string; status_code: 501 }
        | { result: { code: string; state: string }; status_code: 200 }
        | { status_code: 302 }

    Response when initiating an authorization flow.

    This response can have the following status codes:

    • 200: Authorization completed successfully (native in_place flow). The result contains the authorization code and state.
    • 204: No content - user cancelled or flow completed without result data.
    • 302: Redirect in progress (web redirect flow). The page will navigate away.
    • 400: Bad request - missing required OAuth parameters or invalid configuration.
    • 403: Forbidden - client not authorized for the requested scope.
    • 500: Internal server error - unexpected error during native authorization.
    • 501: Not implemented - this method requires the Grab app environment.