Saksham2k3s / Ecommerce-store

1 stars 1 forks source link

adding token expiration #2

Closed Amrani-Farouk-Hossam-Eddine closed 5 months ago

Amrani-Farouk-Hossam-Eddine commented 5 months ago

i added token expiration when createing a token and handle it in the LoginSinUp.jsx page, and updated the slices when the case is rejected isLoading should be false

Saksham2k3s commented 5 months ago

Hii @Amrani-Farouk-Hossam-Eddine , I've merged your pull request but encountering one issue now related to useHistory hook . Could you please check it? usehistory_error

Saksham2k3s commented 5 months ago

I think you should use useNavigate instead of useHistory

Amrani-Farouk-Hossam-Eddine commented 5 months ago

I usully use useNavigate this time i decided to try useHistory

Saksham2k3s commented 5 months ago

But this is giving error, Could you please correct it

Amrani-Farouk-Hossam-Eddine commented 5 months ago

i correct it, you can see it on the pull requests