hassox / phoenix_guardian

A demo application showing usage of guardian and ueberauth
MIT License
299 stars 70 forks source link

Refresh Token #33

Open pytong opened 8 years ago

pytong commented 8 years ago

When should I refresh a token? How can I tell if a token has expired? I want to avoid asking the user to click the "Authorize" button more than once. I plan to add a plug to a pipeline for all the APIs. Or should I call UserFromAuth.find_or_create_user(auth, current_user, Repo) every time in all API controller actions?

yordis commented 7 years ago

@pytong which token?