You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to fetch custom user claims with the rrfConfig flags of "enableClaims: true" & "userProfile: users" but it is failing to fetch the custom claims. I've confirmed that the custom user claims are being created on the back with the admin SDK but they are not being set in state.firebase.profile.token.claims.
import{combineReducers}from"redux";import{firebaseReducer}from"react-redux-firebase";import{constants}from"react-redux-firebase";constappReducer=combineReducers({firebase: firebaseReducer,// other reducers here omitted for sake of brevity});constrootReducer=(state,action)=>{if(action.type===constants.actionTypes.LOGOUT){returnappReducer(undefined,action);}returnappReducer(state,action);};exportdefaultrootReducer;
Hello,
I'm trying to fetch custom user claims with the rrfConfig flags of "enableClaims: true" & "userProfile: users" but it is failing to fetch the custom claims. I've confirmed that the custom user claims are being created on the back with the admin SDK but they are not being set in state.firebase.profile.token.claims.
I'm expecting the following for the profile data:
But am instead receiving:
Here is my current index.js file for the application:
The config file:
And my custom user claim setting on the backend for email/password and Google logins:
I can verify that the claims are set by calling this:
Some FYI's: I'm using Chrome, version 3.10.0 of react-redux-firebase, and plan to use these custom claims for HOC Authentication routing.
Any help with this matter would be very much appreciated as it is causing me quite the headache!
Thanks!
Seth
The text was updated successfully, but these errors were encountered: