Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Missing scope throws Uncaught AppwriteException: Invalid redirect #8090

Open
2 tasks done
gepd opened this issue May 8, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@gepd
Copy link
Contributor

gepd commented May 8, 2024

馃憻 Reproduction steps

  1. Follow the steps of this tutorial: https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1
  2. In appwrite, create an API KEY without permissions for Auth.sessions.write
  3. As user, try to login and you will get the error Uncaught AppwriteException: Invalid redirect (in the browser console)

In my case I was using createOAuth2Token with github

馃憤 Expected behavior

To get a more descriptive or informative error.

I only got to know about the solution because I check the logs in the server and I saw the missing scope, it would be good to have some similar error in the SDK

馃憥 Actual Behavior

I see the error: Uncaught AppwriteException: Invalid redirect

image

馃幉 Appwrite version

Version 1.5.x

馃捇 Operating system

Linux

馃П Your Environment

node-appwrite: 12.1.0-rc.4
next: 14.2.2
appwrite 1.5.5

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@gepd gepd added the bug Something isn't working label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant