-
I've got my Express API that manages all DB connections on the BE and a NextJS client where ideally I would like to be able to recycle those sign in buttons and pages. Is there an easy way to achieve this? Constrains:
|
Beta Was this translation helpful? Give feedback.
Answered by
Randulfe
Nov 30, 2024
Replies: 1 comment
-
Ok for whoever gets here, this is how you sort some of the issues with the integration:
Your express BE:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Randulfe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok for whoever gets here, this is how you sort some of the issues with the integration:
Your FE client:
domain/auth/signin/[provider]
withCredentials: true
in axios orcredentials: 'include'
in vanilla fetchYour express BE:
ExpressAuth
you are setting the propertycallbacks: async redirect() { return [the URL of your home signed in page in your FE] }
. This will redirect the applicati…