-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Your question
Is it possible to use next-auth to authenticate & interact with the Provider API (e.g. OAuth with GitHub then interact w/ GH API), instead of the Nextjs API?
What are you trying to do
We're in the process of migrating a Django app with React sprinkles into a headless Django app + Nextjs. In this case, the Django app would be both the resource & authorization server, as it currently maintains all the BE business logic. The front-end will primarily be interacting with that Django API, and there's a lot of really good stuff in next-auth that would be really helpful for handling this authentication setup, but it looks like the primary use case is authentication for the purpose of accessing the Nextjs API. Would it be possible to take advantage of next-auth for this setup? If so, any insight on how would be appreciated. If not, are there changes needed in next-auth to make this feasible, and would you accept those changes?
Thank you for your help!
Documentation feedback
- Found the documentation helpful
- Found documentation but was incomplete
- Could not find relevant documentation
- Found the example project helpful
- Did not find the example project helpful