firebase / firebase/firebase-js-sdk

AuthProvider class lacks API to retrieve provider name

Open
#8,584 8 comments 0 reactions 0 assignees View on GitHub
api: auth feature request
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### Operating System

Any

### Environment (if applicable)

Google Chrome 130.0.6723.58 (Official Build) (64-bit)

### Firebase SDK Version

10.12.0

### Firebase SDK Product(s)

Auth

### Project Tooling

Angular

### Detailed Problem Description

I configure a custom OIDC provider following https://firebase.google.com/docs/auth/web/openid-connect#before_you_begin

In my app we have a dialog for the user to choose the login provider to use. Since there are multiple OIDC providers I'd like to use human readble labels. When I create the provider with the provider-id, I would expect an api like `provider.GetName()` to retrieve that name that I specified when I created the provider.

The api docs don't list such an api:
https://firebase.google.com/docs/reference/node/firebase.auth.AuthProvider

### Steps and code to reproduce issue

See above.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.