redux-token-auth
redux-token-auth copied to clipboard
setting storage to sessionStorage not working
I want to set the values in sessionStorage instead of localStorage. Current configuration:
{
authUrl: 'http:localhost:3000/user_auth',
storage: sessionStorage,
userAttributes: {
firstName: 'first_name',
lastName: 'last_name',
contactNumber: 'contact_number',
profilePhotoUrl: 'profile_photo_url',
gender: 'gender',
role: 'role',
type: 'type',
uid: 'uid',
id: 'id',
email: 'email',
},
userRegistrationAttributes: {
firstName: 'first_name',
lastName: 'last_name',
},
}
How should I configure it?
May be related to #37