next-auth icon indicating copy to clipboard operation
next-auth copied to clipboard

Custom pages ability as function

Open CRGavrila opened this issue 6 years ago • 4 comments

Summary of proposed feature Instead of strict string, it would be great to be a function | string for https://next-auth.js.org/configuration/pages

Purpose of proposed feature For some reasons I have multiple routes for sign-in and I would like to add for each route a custom page

Detail about proposed feature This function should have the next-auth route as first parameter and current route of app as second parameter

Potential problems I don't think there will be any problems

Additional context

image

Please indicate if you are willing and able to help implement the proposed feature. Yes

CRGavrila avatar Nov 11 '20 09:11 CRGavrila

Also for signUp callback, should have another parameter called options and should be a forward of the second argument. call: signIn('google', { callbackUrl: url, ...otherProps }) callback: signIn: async (user:, account, profile, options)

CRGavrila avatar Nov 11 '20 14:11 CRGavrila

Hi, there could you please elaborate a bit more on your use case?

balazsorban44 avatar Jan 11 '21 21:01 balazsorban44

Hi there! It looks like this issue hasn't had any activity for a while. It will be closed if no further activity occurs. If you think your issue is still relevant, feel free to comment on it to keep it open. (Read more at #912) Thanks!

stale[bot] avatar Mar 13 '21 16:03 stale[bot]

Hi there! It looks like this issue hasn't had any activity for a while. To keep things tidy, I am going to close this issue for now. If you think your issue is still relevant, just leave a comment and I will reopen it. (Read more at #912) Thanks!

stale[bot] avatar Mar 20 '21 18:03 stale[bot]