CreateSession GraphQL Mutation
slashmili opened this issue · comments
Milad commented
This mutation accepts:
- code
- auth type
- redirect uri
- The back-end uses these information(and client_id and client_secret) to fetch access token and store the access token.
- Back-end fetches user information(from AuthServer) and based on User information, try to lookup the user, if the user is new, we create the user
- We create session id.
- Return JWT with session id in the payload.