
Don’t seem to see any changes between 1.5.10 and 1.6.0.
I’m getting ”invalid redirect” url error. Doesn’t seem right.

code
const SocialSignInButton = ({ provider, disabled }) => {
const getText = useLocalizedText();
const { account } = useAppwrite();
const { saveUserToDB } = useUser();
const location = window.location.origin;
const successUrl = `${location}/`; // eg localhost:5173/login
const failureUrl = `${location}/login`; // eg localhost:5173/login
const signInWithGoogle = async () => {
try {
await account.createOAuth2Session(
OAuthProvider.Google,
successUrl,
failureUrl
);
// After successful OAuth login, fetch the account to get user details
const user = await account.get();
// Save or update user in the database
await saveUserToDB(user);
} catch (error) {
console.error("Error logging in with Google:", error);
}
};


Is this your GItHub issue? https://github.com/appwrite/appwrite/issues/8712
Want to share with me your endpoint and project ID via DM so I can test?

Yeah sure I’ll dm

what's your tech stack?

@eren can you update to 16.0.1 and try again?

The redirection error is solved. However, the login flow didn't succeed. I arrive at the Google screen, then choose my account. I get redirected back to the app and then the network call account gets the 401 Unauthorized code.
The image claims I don't have the scope. I also noticed that the redirect URL always has a "#" at the end regardless of the URL I want. Eg "/" becomes "/#" or "/hey" becomes "/hey<#null>

is this local or with a real domain?

Localhost dev server that still talks to the real domain. But the app is running in localhost

just found a problem with the web sdk regarding 3rd party cookies. we're going to try to push out another patch

it should work on an actual domain though because it won't be a 3rd party cookie

@eren okay, just released 16.0.2. Can you try with that?
Recommended threads
- Subdomain failed verification
So I wanted to do a custom subdomain, because local storage doesn't work for me, but I've tried it a long time ago, it didn't work for me, and now I'm trying ag...
- 404 error when navigating to the team fr...
the version i m running is `1.7.4` as far as i can tell everything is working fine except for this weird bug in the video. when monitoring the appwrite and app...
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
