Skip to main content

Function Signature

Description

A PortalAuth method. Returns the Google sign-in URL for the configured auth environment. It opens nothing: your app opens authorizeUrl in a browser, and the sign-in completes when the app receives the redirect and passes it to handleRedirect. Every call fetches a new single-use URL. Open it right away and never cache it: one backend response shares a single-use state across both providers, so reusing a URL, or starting Google and then Apple from the same response, invalidates the other. Google is configured in the Portal dashboard; the app needs no Google client ID. Available starting from portal_flutter 2.0.0.

Parameters

This method takes no parameters.

Returns

PortalAuthorizeUrl - An object containing:

Example

Errors