Skip to content
Discussion options

You must be logged in to vote

@saseungmin Please check.
@DiegoGonzalezCruz I don't see your example! But it looks like a similar approach to mine. I also think that the current firebase adapter should be changed. User private data in firebase cannot be used in frontend because the current method does not go through firebase-auth. I also faced this problem, and I succeeded in connecting next-auth and firebase-auth similar to the session method in the following way.

  1. The firebase-adapter was recreated through the firebase-admin SDK.
  2. In the api of the next project, create an endpoint that creates a firebase customToken only when logged in (when session object can be obtained).
  3. In all requests for firebase data in fronten…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@NayamAmarshe
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@DiegoGonzalezCruz
Comment options

@fronterior
Comment options

Answer selected by saseungmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
adapters Changes related to the core code concerning database adapters firebase @auth/firebase-adapter
5 participants
Converted from issue

This discussion was converted from issue #3820 on February 06, 2022 13:10.