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

    Type Alias FetchEmailResponse

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

    Response when fetching the user's email.

    This response can have the following status codes:

    • 200: Email fetched successfully. The result contains the email address.
    • 204: No content - email not available.
    • 400: Invalid request - the request was malformed.
    • 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.