Skip to content
Back

Restoring session from MagicURLToken

  • 0
  • Web
pontus952
12 Oct, 2024, 13:27

Hi, in my app the user goes through a sign-up page where data is given to Appwrite (see attached for signUp function). Here I am creating a magic URL and userID which I pass to a callback during another session with a 3rd party provider. From this callback I want to restore that session with the userId and the Token. But unfortunately this is not possible as I am apparently missing the user roles: "Error restoring session: AppwriteException: User (role: guests) missing scope (account) "

TL;DR
Developers need help restoring a session from MagicURLToken created during sign-up. Even though they pass the correct userId and Token to a callback, they are encountering an error due to missing user roles. The error message indicates that the user is missing the 'account' scope. This prevents the session from being restored successfully. To resolve this issue, the developers should ensure that the user roles include the necessary 'account' scope to restore the session.
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