I have an Angular 4 app that uses Firebase UI (web) with Google auth. For our company staff users, I need to ask for more permission scopes than non-staff users. I don't necessarily need those extra scopes right away, though.
I'm thinking that the login screen will have a "staff login" checkbox that toggles the config. However, the new firebaseui.auth.AuthUI(firebase.auth())
call has already been made.
ui.start()
a second time with a different config?You can re-render the widget with:
ui.reset();
ui.start('#firebaseui-container', myNewConfig);