Authentication over RestAPI support #12019
GokulDas027
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
I'm using authjs for authentication in a nextjs project, and now building android/ios (KMM) app for the same using APIs from nextjs.
Google authentication is setup at the client side, which provides the google access token, which needs to verified from backend (nextjs) and collect user info from google. Currently, couldn't find an endpoint provided by authjs for doing it, neither does a method to do the same on passing the token from frontend.
Now i'm having to implement a parallel authentication/authorization pipeline for api requests from apps
Proposal
A RestAPI endpoint to POST the access token/credentials from client side, and handle the server side actions for authentications as it's done for next frontend and then respond with user details and jwt token for the app.
Beta Was this translation helpful? Give feedback.
All reactions