SimpleAuth icon indicating copy to clipboard operation
SimpleAuth copied to clipboard

Silent Login on Launch

Open Vortec4800 opened this issue 11 years ago • 2 comments

One thing that seems to be missing is a method that performs a "silent login" attempt on login using a previously saved auth token. Without this, the user would need to re-log in to the app every time it launches.

Is this on the roadmap? We may try to figure this out ourselves, just wasn't sure if you had a plan for it already.

Vortec4800 avatar Jan 29 '14 18:01 Vortec4800

I'm not sure I know what you mean. Once you have a user token, you are permanently logged in. Save the token to the keychain and you will be able to make any request on behalf of the user. An exception to this is services like Facebook where tokens expire after a specified amount of time. For these, the token response contains an NSDate indicating when the token expires.

calebd avatar Feb 03 '14 19:02 calebd

Yes, Facebook is what I was referring to specifically. Google does the same thing, though that doesn't apply here.

We added some functionality to re-auth a user given an old token, we'll send in a pull request so you can take a look.

Vortec4800 avatar Feb 04 '14 00:02 Vortec4800