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?
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?