Is there a way refresh session/token?


#1

Hi,

Does dreamfactory have a api/method to refresh the session/token? I’m working on an android app and wanted a feature that allows user to authenticate only once. Then succeeding use of the app, users should not have to login with their username and password again. The client can just refresh the session/token whenever it expires or becomes invalid.

I noticed while playing around with the /rest/user/session api is that there is a duration value passed. I can probably set this to a million or something to keep the user authenticated for a long time but I’m not sure if this is the right way to do it.

Appreciate your feedback.

Thanks,
Allen


#2

This feature ship in Version 2.0. Beta will be available in about a week on GitHub. 2.0 uses JSON Web Tokens and your client app can authenticate once and just refresh the token periodically.


#3

Thanks. Looking forward to this.