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

    Type Alias VerifyEmailResponse

    VerifyEmailResponse:
        | { status_code: 204 }
        | { error: string; status_code: 400 }
        | { error: string; status_code: 403 }
        | { error: string; status_code: 500 }
        | { error: string; status_code: 501 }
        | { error: string; status_code: 426 }
        | { result: { email: string }; status_code: 200 }

    Response when verifying the user's email.

    This response can have the following status codes:

    • 200: Success, email verified and returned in result.
    • 204: User closed the native bottom sheet.
    • 400: Client error (e.g. invalid email format).
    • 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.

    Successful verification:

    {
    status_code: 200,
    result: { email: 'user@example.com' }
    }

    User closed bottom sheet:

    { status_code: 204 }