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
- User clicks "Sign in with Google" button
- OAuth flow completes
- User appears in Appwrite console β
- But client-side shows:
No active session found - 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.Recommended threads
- OAuth2 Session Not Persisting After Goog...
I'm implementing Google OAuth2 authentication in React using Appwrite SDK. The flow is: 1. User clicks "Sign in with Google" button 2. Gets redirected to Googl...
- New OAuth provider not appearing in Cons...
Hi team! I'm contributing to Appwrite and currently working on adding Hugging Face as a new OAuth provider. Here's what I've done so far: - Implemented the ...
- Pricing question for the civil society o...
Hey! Can someone help me out? π₯Ί Do you have any discounts or programs for non-profit civil society organizations, even if they're not open-source? Or maybe you...