Skip to content

Releases: delba/SwiftyOAuth

Refresh token

26 May 16:17
Compare
Choose a tag to compare

Refresh the tokens:

provider.refreshToken { result in
    // ...
}

Check if a token is valid:

if let token = provider.token {
    print(token.isValid)
    print(token.isExpired)
}

Optionally set the scopes:

provider.scopes = ["some", "scope", "here"]

Optionally set the additional parameters for the authorization/token requests:

provider.additionalAuthRequestParams
provider.additionalTokenRequestParams

A new wiki 😃