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
const authClientOptions = {
storageKey: 'feathers-jwt', // The key in localStorage used to store the authentication token
authenticate: { // Options included in calls to Feathers client.authenticate
strategy: 'local',
},
permissionsKey: 'permissions', // The key in localStorage used to store permissions from decoded JWT
permissionsField: 'roles', // The key in the decoded JWT containing the user's role
passwordField: 'password', // The key used to provide the password to Feathers client.authenticate
usernameField: 'username', // The key used to provide the username to Feathers client.authenticate
redirectTo: '/login', // Redirect to this path if an AUTH_CHECK fails. Uses the react-admin default of '/login' if omitted.
logoutOnForbidden: true
};
One user can have multiple roles. Is there anyway to get that roles data?
Somehow, I cannot retrieve roles data.
The text was updated successfully, but these errors were encountered:
Hi, need some help here.
My authentication feathers return this.
And this is my authClientOption
One user can have multiple roles. Is there anyway to get that roles data?
Somehow, I cannot retrieve roles data.
The text was updated successfully, but these errors were encountered: