#Hello guys,

1 messages · Page 1 of 1 (latest)

polar depot
#

are you using a database adapter

#

or JWTs

ionic valve
#

I want use nextjs as pure frontend -> no connection to databases

In the backend I want to use nestjs

polar depot
#

Are you having multiple providers

#

if so you could concat the provider:userid

ionic valve
#

Nope, just github at the moment

#

Is there a way to get the user ID of github by sending a request to github?

polar depot
#

look at what their user endpoint gives

#

is it only email?

#

honestly you could just have a primary key be the joined provider and email

#

or you can break them in their own columns and have them joined as a unique index

ionic valve
#

but what happens if the user changes it's email -> all posts and ownerships would be lost

polar depot
#

that is true

#

there surely is something that the github oauth gives

#

that does not change?

#

like an account ID or something

ionic valve
#

Yes I get the Id now

#

but now I need to add the provider-type.

Trying to figure out how i can add that information to session

polar depot
#

you mean to the JWT?

#

one of the callbacks for next auth most likely will do that for u

ionic valve
#

yes, I will take a look

#

Thank you a lot sir!