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

    Type Alias VerifyEmailResponse

    VerifyEmailResponse: BridgeResponse<
        200
        | 400
        | 403
        | 426
        | 500
        | 501,
        VerifyEmailResult,
    >

    Response when verifying the user's email.

    This response can have the following status codes:

    • 200: Email verified successfully.
    • 400: Invalid request - OTP is incorrect or expired.
    • 403: Forbidden - client not authorized to access user profile data.
    • 426: Upgrade Required - feature requires Grab app version 5.399 or above.
    • 500: Internal server error - an unexpected error occurred on the native side.
    • 501: Not implemented - this method requires the Grab app environment.

    Success response (200):

    { status_code: 200 }
    

    Bad request response (400):

    {
    status_code: 400,
    error: 'Invalid OTP'
    }

    Forbidden response (403):

    {
    status_code: 403,
    error: 'Forbidden: Client not authorized to access user profile data'
    }

    Upgrade Required response (426):

    {
    status_code: 426,
    error: 'Upgrade Required: This method requires Grab app version 5.399.0 or above on iOS'
    }

    Internal server error response (500):

    {
    status_code: 500,
    error: 'Internal server error'
    }

    Not implemented response (501) - outside Grab app:

    {
    status_code: 501,
    error: 'Not implemented: This method requires the Grab app environment'
    }