kylecorbelli / redux-token-auth

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

no way to access GET ${authUrl}/confirmation #26

Closed DonGiulio closed 6 years ago

DonGiulio commented 6 years ago

I currently see no way with this module to access GET ${authUrl}/confirmation route in my backend, I can't imagine how I could verify user email addresses before letting them signin in my app.

I am using redux-token-auth for authentication with my backend Rails based with devise_token_auth

I expected that verifyToken and verifyCredentials to have different backend calls, respectively

Currently (in src/actions.ts) I see that verifyToken goes to GET ${authUrl}/validate_token, and verifyCredentials has an internal call to verifyToken, ending up to that same backend path

Any clues?

DonGiulio commented 6 years ago

ok, clues found, sorry,

there's actually no need to deal with the verifyToken requests in the front end, I just set up my devise_token_auth to redirect back to my FE app, and it seems to work.