Next.js Discord

Discord Forum

is there anyway to make multiple login with next-auth ?

Unanswered
Scaly-naped Pigeon posted this in #help-forum
Open in Discord
Avatar
Scaly-naped PigeonOP
I have an admin app that I login into to be able to see my dashboard etc, but I wanted to make something like this to be able to login to another account with a button to get his jwt token and then decode it and login within only an iframe like code below here I get the jwt token session inside the url but how can i decode it and only login within the iframe ?

<Dialog header="" visible={visible} style={{ width: '100vw', height: '100%' }} onHide={() => setVisible(false)} modal > iframe src={/mentor?token=${session}} style={{ width: '100%', height: '100%', border: 'none' }}></iframe> </Dialog>

or what is the right way to do this ?

0 Replies