provider Members GET
/v1/b2b/organizations/{organization_id}/members/{member_id}/oauth_providers/google @utdk/stytch
/v1/b2b/organizations/{organization_id}/members/{member_id}/oauth_providers/google Google
Retrieve the saved Google access token and ID token for a member. After a successful OAuth login, Stytch will save the
issued access token and ID token from the identity provider. If a refresh token has been issued, Stytch will refresh the
access token automatically.
Google One Tap does not return access tokens. If the member has only authenticated through Google One Tap and not through a regular Google OAuth flow, this endpoint will not return any tokens.
__Note:__ Google does not issue a refresh token on every login, and refresh tokens may expire if unused.
To force a refresh token to be issued, pass the `?provider_prompt=consent` query param into the
[Start Google OAuth flow](https://stytch.com/docs/b2b/api/oauth-google-start) endpoint.
- organization_id path required
- Globally unique UUID that identifies a specific Organization. The `organization_id` is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.
- string
- member_id path required
- Globally unique UUID that identifies a specific Member. The `member_id` is critical to perform operations on a Member, so be sure to preserve this value. You may use an external_id here if one is set for the member.
- string
- include_refresh_token query
- boolean
Try it
Authentication
Configure credentials for Stytch API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import stytch from '@utdk/stytch';
await stytch.apiOrganizationV1OrganizationsMembersOauthProvidersGoogle()