I have added a custom OIDC Provider to my Google Identity Platform. I can successfully authenticate with it, so I know it's not an issue with the provider configs, but for some reason when I try to add additional scopes to the token request the new scopes do not appear in the request url. In the code block below, I see the OAuthProvider object showing the additional scopes I added before requesting the signInWithPopup. But after this request when I validate the token I received it only has the 'oidc` scope and the additional scopes do not appear in the URL of the popup. Am I missing some additional step or does additional scopes not work with custom OIDC providers in Firebase Auth?
let twitch = new firebase.auth.OAuthProvider('oidc.twitch');
twitch.addScope('moderation:read');
twitch.addScope('user:edit');
console.log(twitch); // This shows the additional scopes requested
const user = await this.auth.signInWithPopup(twitch); // This URL only shows the oidc scope
console.log(user); // This user token does not have any additional scopes
Any help or confirmation is appreciated before I have to go roll my own auth. Thanks,