Skip to content
Back

Google OAuth: User Created But Session Not Recognized

  • 0
  • 1
  • Auth
  • Web
  • Cloud
5 Aug, 2026, 09:55

Problem Summary

When signing in with Google, the user is successfully created in the Appwrite console, but the session is not being recognized on the client side. The application keeps redirecting with "No active session found" error.


πŸ”΄ Issue Details

What's Happening

  1. User clicks "Sign in with Google" button
  2. OAuth flow completes
  3. User appears in Appwrite console βœ…
  4. But client-side shows: No active session found
  5. App continuously redirects (401 error)

Console Errors

TypeScript
react-dom_client.js?v=b7c8055c:14334 Download the React DevTools for a better development experience: https://react.dev/link/react-devtools

sgp.cloud.appwrite.io/v1/account:1  Failed to load resource: the server responded with a status of 401 ()

Profile.jsx:16 No active session found. Redirecting...

sgp.cloud.appwrite.io/v1/account:1  Failed to load resource: the server responded with a status of 401 ()

Profile.jsx:16 No active session found. Redirecting...

πŸ” Current Code Flow

TypeScript
// Profile.jsx
const checkSession = async () => {
  try {
    const session = await client.account.get();
    // User data
  } catch (error) {
    console.log("No active session found. Redirecting...");
    // Redirect to login
  }
};

πŸ™ Request

Looking for guidance on:

  • Proper OAuth session handling in React
  • How to verify session after Google sign-in
  • Next steps to debug this issue
TL;DR
User is successfully created in Appwrite console, but the session is not recognized on the client side, causing continuous redirection with a "No active session found" error. The solution involves proper OAuth session handling in React, verifying the session after Google sign-in, and debugging to identify the issue causing the session recognition problem.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more