79146421

Date: 2024-10-31 21:49:02
Score: 1
Natty:
Report link

Whilst not ideal, another Alternative might be to utilize the custom authentication feature available with identity platform https://cloud.google.com/identity-platform/docs/web/custom”,

For this you would need to implement your own OAuth2/OIDC flow to this non-standard provider outside of firebase/identity platform, there are many frameworks to facilitate this, and then once successfully authenticated, create a JWT (as instructed in the link) and sign in to firebase/identity platform.

Presuming you require it, this method would allow you to continue to use the services/ alternative providers offered by firebase auth and centrally manage your users.

Note, careful consideration should be made regarding token refresh and revocation of users authenticated in this way.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gavin Kerr