kylecorbelli / redux-token-auth

Redux actions and reducers to integrate easily with Devise Token Auth
MIT License
154 stars 80 forks source link

setting storage to sessionStorage not working #32

Open swapnil2993 opened 6 years ago

swapnil2993 commented 6 years ago

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?

wa0x6e commented 6 years ago

May be related to #37