Back

anyone who can help me... I want to store data after user authenticated. in redux...

  • 0
  • Users
  • Accounts
  • Web
mazil
1 Aug, 2023, 19:20

I am using react with redux for state management... I want to dispatch the user details after creating oauth session...

TL;DR
The user wants to store data after the user has been authenticated in Redux. They are using React with Redux for state management. They mention that when calling `createOAuth2Session()`, the user gets redirected and `console.log()` is never executed. It is suggested to put the logic on the page where the user is redirected back to. They also mention setting up the app following a specific GitHub repository to ensure the login logic runs when redirected back to the app. No solution is provided in the thread.
Drake
1 Aug, 2023, 19:23

in we, the user gets redirected somewhere else when you call createOAuth2Session() so that console.log() is never executed. You would have to put your logic on the page where the user is redirected back to.

also, you should set up your app like https://github.com/appwrite/appwrite/discussions/3938#discussioncomment-3746725. So when you're redirected back to your app, this logic will run and you'll be logged in

mazil
1 Aug, 2023, 19:26

I am not using flutter...

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