Replies: 1 comment 2 replies
-
If you are OK targeting browsers that support localstorage, I might suggest this:
This assumes you "control" the page the user is first landing on. If it's a next-auth |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Telegram bot and user can sign in via my Next.js app.
The flow is user send a message to my telegram bot, telegram bot will send the Sign In URL. Then, user will visit the Sign In URL that has been sent by my telegram bot. After user sign in with the given URL, user will redirect to custom page that contain next instruction about next step.
The question is, how to generate the sign in link with custom callback URL programmatically via Server that can send to another user?
I have tried passing the url of the custom page in
callbackUrl
query, but it's not work. The user is even directed to the/
page after signing in.http://localhost:3000/api/auth/signin?callbackUrl=http://localhost:3000/instruction/telegram
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions