Replies: 3 comments 4 replies
-
Thank you very much. I am trying to auth with them, but I am not going to try because of my broken skill. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much
…On Sun, Aug 13, 2023 at 11:29 PM Tom Catshoek ***@***.***> wrote:
I added a very basic usage example here:
https://github.com/TCatshoek/fastapi-nextauth-jwt/tree/main/examples/simple
I hope that helps!
—
Reply to this email directly, view it on GitHub
<#8064 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7YJM5HCQTQBVUB75DXNYK3XVDQFPANCNFSM6AAAAAA2MVIXFU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am completely new to NextJS so forgive me if this a dumb question, but doesn't this make your fastapi endpoints really depend on the NextJS NextAuth payload? And thus too coupled? I just started building a NextJS front-end for my FastAPI backend so I am doing some research on this topic, but doesn't Auth.JS already provide solutions on this topic? https://authjs.dev/guides/integrating-third-party-backends I would say I want NextAuth to authenticate against my fastapi auth endpoint and store the returned accesstoken on the NextJS side (encrypted preferably but I guess that's already the idea) and use that token attached to a header, to authenticate for all my other requests. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I wrote a little FastAPI library to make it easy to use NextAuth generated tokens in FastAPI: https://github.com/TCatshoek/fastapi-nextauth-jwt. It also does NextAuth compatible CSRF protection.
I saw some previous discussions in here about this, but none of them matched exactly and they were from a while ago so I figured I'd start a dicussion here.
I'm still working on some examples too, but I'd love to hear what you think!
Beta Was this translation helpful? Give feedback.
All reactions