Reputation: 1549
i have an api feeding mobile apps and im using simple_token_authentication for users login and register. The thing is i want to keep the user logged in as long as he doesn't himself close the app or log out.
I guess there might be something on devise initializer, but considering simple_token_authentication is an external gem, maybe not. Does anyone know?
Upvotes: 1
Views: 345
Reputation: 4164
There was discussion on the simple_token_authentication gem about having sign-out functionality but the project owner decided against it. The token is valid for as long as you want it to be valid.
Upvotes: 2