From 48e8e601a8739fea981736fe3297ec898cdaa712 Mon Sep 17 00:00:00 2001 From: Ebenezer Don Date: Wed, 1 Oct 2025 16:33:16 +0100 Subject: [PATCH 1/2] recommend token-based or custom domain --- src/routes/docs/products/auth/oauth2/+page.markdoc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/routes/docs/products/auth/oauth2/+page.markdoc b/src/routes/docs/products/auth/oauth2/+page.markdoc index fcbd4566ff..c4109966d6 100644 --- a/src/routes/docs/products/auth/oauth2/+page.markdoc +++ b/src/routes/docs/products/auth/oauth2/+page.markdoc @@ -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. @@ -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 %} \ No newline at end of file +{% /info %} From d42c3eb9e57a31fa58739e0e71160b08d0ad4d39 Mon Sep 17 00:00:00 2001 From: Ebenezer Don Date: Wed, 1 Oct 2025 16:35:08 +0100 Subject: [PATCH 2/2] update casing --- src/routes/docs/products/auth/oauth2/+page.markdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/docs/products/auth/oauth2/+page.markdoc b/src/routes/docs/products/auth/oauth2/+page.markdoc index c4109966d6..e3f97789b6 100644 --- a/src/routes/docs/products/auth/oauth2/+page.markdoc +++ b/src/routes/docs/products/auth/oauth2/+page.markdoc @@ -28,7 +28,7 @@ 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" %} +{% 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 %}