Replies: 2 comments
-
For the first two questions:
Otherwise, it's not clear what the API call would do. Are you trying to enrich the user profile? In that case, the But you can also do it via the |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer @balazsorban44
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
We're using JWT login with several providers (example: discord, twitch...).
I have several questions:
The
user
available injwt
callback seems different thansession.user
(insession
callback). In our case for instance, it no longer have theid
field insession.user
.Is it expected behaviour and is it customisable? It would be useful to have the id, and even to add additional properties to user.
Is it possible to cancel the session or SignOut the user within the
session
callback or is it not the way it is designed to work?My use case is: if some parameter are not met, we don't actually want to login the user.
The
SignIn
callback seems to be designed for the purpose of not signing in the user if some requirements are not met. However it's only called on first sign-in.jwt
is called everytime but with partial data.session
is called everytime.Where am I supposed to do external request call (for instance my own API, or discord to get additional information etc)?
/
For my use case more specifically:
If I want to do something like "requesting my own API everytime I call
session
, and if the result is not what I expect, then not display the webpage or sign-out".How to reproduce ☕️
N/A
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions