mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 20:55:57 +03:00
[GH-ISSUE #240] How to keep user signed in ? #136
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#136
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jun 22, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/240
What should I do if token expires ? Is there a way to get new token without forcing user to re-enter his login and password ?
@phimage commented on GitHub (Jun 22, 2016):
Oauth2 or oauth1?
Look for "renew" process
@ghost commented on GitHub (Jun 22, 2016):
oauth2
tried looking, but didnt find anything useful :(
@phimage commented on GitHub (Jun 22, 2016):
There is a pr for automatic renew that could not be merged
But you can do it by making a request, see your oauth provider doc
@antwerpenR commented on GitHub (Jun 22, 2016):
@archiewahwah I have found that the auto renewal generally does work. When it fails you will get a error.code of 401 and you can try the call again and it will work. I guess the foolproof way to do it is to use:
'renewAccesstokenWithRefreshToken(refreshToken: String, success: TokenSuccessHandler, failure: FailureHandler?)'
@phimage commented on GitHub (Jul 7, 2016):
"expire in" date must be checked and
renewAccesstokenWithRefreshTokenused(one day automatic renew will be merged I hope)