Replies: 3 comments
-
Someone? 😄 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Someone? 😄 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @Manubi Here is my starter example: https://github.com/arnaudjnn/nextjs-hasura-starter
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone!
It's my first time working with next-auth so please be patient. I do like it so far! 💯
I will go threw all the tutorials I find until I feel confident in making the switch, but before I'd like to get some questions out of the way. Thanks!
Status quo:
So far, we are using firebase-auth with JWT to connect to an existing hasura graphql backend that uses postgres. But we are not happy with the firebase serverless onCreate hook that takes always too long when a user registers.
I was able to add next-auth on the frontend with googleOauth but without database access. So I only have the google provider in my
[...nextAuth].ts
and login/logout works on the frontend.What I am trying to achieve:
I want to add next-auth to our existing project and want to use email (magic link), google and apple oauth with JWT to connect to our hasura/postgres backend.
What are the questions:
user
table (notusers
as used by next-auth) and we would like to just add the missing columns in order to not have to rewrite all the graphql queries in the frontend. Is that possible or do I need to change the table name touser
to use next-auth? If it's possible with an adapter can you lead me to a tutorial where I can learn about it? Thanks!session
is only needed if you don't use JWT authentication. So I guess we won't have to add thesession
table, right?id
type uuid) what's the best way to change it from integer to uuid? Update: You can add properties to the schema and map them to any database column names you wish, but you should not change the base properties or types defined in the example schema. Means probably no it's not possible?Thanks for your patience and help!
cheers
Manuel
Beta Was this translation helpful? Give feedback.
All reactions