Looking at implementing <https://docs.descope.com/...
# ask-a-descoper
k
Looking at implementing https://docs.descope.com/migrate/firebase and am curious.. with the full migration, what other steps are necessary in order for existing firestore rules to work (which depend on claims set in the firebase auth session token). If the answer is "it can't", then is that when we'd want to use the hybrid implementation?
k
Hi @Kirk Morales, if you want to use Firestore endpoints directly with the client using the token, you can actually use
signInWithCustomToken()
and our Firebase External Token connector which is a way of creating JWTs that firestore can accept for authentication, after running a natively embedded Descope flow. Otherwise you'd have to accept our tokens in your backend, and use a custom claim in the Descope token and the Firebase Admin SDK or something to fetch information from your Firestore DB
🙌 1