Closed jamesdaniels closed 4 months ago
auth/service-worker-sessions.js
@ts-expect-error
There is no compat version of this API.
API proposal: go/fb-web-firebaseserverapp WIP impl: https://github.com/firebase/firebase-js-sdk/pull/8005 WIP docs: cl/607423524
Trying to keep it simple for now, matching the behavior of the current Admin SDK snippet in the docs—which wasn't in this repo, addressing here.
Existing snippets:
auth(-next)/server-worker-sessions.js
auth_svc_register
auth_svc_sign_in_email
auth_svc_listen_activate
auth_svc_intercept
auth_svc_subscribe
auth_svc_get_idtoken
New snippets:
auth/server-worker-sessions.js
auth_svc_admin
firebaseserverapp-next/firebaseserverapp.js
serverapp_auth
@DellaBitta no changes strictly needed as the current code in service-worker-sessions.js#auth_svc_intercept works fine. I'm working to simplify though.
service-worker-sessions.js#auth_svc_intercept
Got it, thanks!
auth/service-worker-sessions.js
Simplify the SW codewill do this in a follow on@ts-expect-error
when api has landedThere is no compat version of this API.
API proposal: go/fb-web-firebaseserverapp WIP impl: https://github.com/firebase/firebase-js-sdk/pull/8005 WIP docs: cl/607423524
Trying to keep it simple for now, matching the behavior of the current Admin SDK snippet in the docs—which wasn't in this repo, addressing here.
Existing snippets:
auth(-next)/server-worker-sessions.js
auth_svc_register
auth_svc_sign_in_email
auth_svc_listen_activate
auth_svc_intercept
auth_svc_subscribe
auth_svc_get_idtoken
New snippets:
auth/server-worker-sessions.js
auth_svc_admin
firebaseserverapp-next/firebaseserverapp.js
serverapp_auth