Oauth BeforeLogin hook redirects to Already Logged In
#1347
Answered
by
DanRibbens
adam-mrozik
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
DanRibbens
Feb 3, 2023
Replies: 1 comment 1 reply
-
Were you able to figure out what was going on in your plugin? I don't think it is a Payload specific issue. What you might be up against is that the user object isn't being updated in Payload. There isn't method on the auth provider to do this. I think what typically would happen is that you have a full redirect or page load to update the user coming from the 3rd party auth provider. I hope that helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zubricks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Were you able to figure out what was going on in your plugin? I don't think it is a Payload specific issue.
What you might be up against is that the user object isn't being updated in Payload. There isn't method on the auth provider to do this. I think what typically would happen is that you have a full redirect or page load to update the user coming from the 3rd party auth provider.
I hope that helps!