Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/setting-up/web.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,7 @@ After the script is loaded, you can call the functions for signing in and render
If you call any of the module functions before the client library is loaded, such calls trigger the [`onError` callback](/docs/api#webonetapsignincallbacks) with the [`PLAY_SERVICES_NOT_AVAILABLE` error code](../errors#status-codes).

You can read the official docs for loading the Client Library [here](https://developers.google.com/identity/gsi/web/guides/client-library).

## Usage

See [here](../web-support#usage).
4 changes: 4 additions & 0 deletions docs/web-support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ On the web, the `signIn` and `createAccount` functions are not `Promise`-based b
The reason for callback-based apis rather than promise-based is that it's possible to get into an "error" state (when one-tap is not available) and later get a successful sign in from the button flow. Because of how the Google Sign In for web SDK is done, modeling this with a promise-based api is not possible.
:::

## Setup

See [here](setting-up/web).

## Usage

To implement web support, follow these two steps:
Expand Down