Skip to content
Draft
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
6 changes: 5 additions & 1 deletion src/routes/docs/products/auth/oauth2/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Before using OAuth 2 login, you need to enable and configure an OAuth 2 login pr

To initialize the OAuth 2 login process, use the [Create OAuth 2 Session](/docs/references/cloud/client-web/account#createOAuth2Session) route.

{% info title="Third‑Party cookies" %}
Most browsers now block third‑party cookies by default, so `createOAuth2Session` may not set a session. Use the [token‑based flow](/docs/products/auth/server-side-rendering#oauth2) instead or set up a custom domain in Appwrite that matches your app’s origin so cookies are first‑party. Learn more here: [Fixing OAuth2 issues in Appwrite Cloud](/blog/post/fixing-oauth2-issues-in-appwrite-cloud).
{% /info %}

OAuth2 sessions allow you to specify the scope of the access you want to request from the OAuth2 provider.
The requested scopes describe which resources a session can access.

Expand Down Expand Up @@ -395,4 +399,4 @@ val response = account.updateSession(

{% info title="GraphQL" %}
OAuth 2 is not available through the GraphQL API. You can use the REST API or any Client SDK instead.
{% /info %}
{% /info %}