A Response.
Instance Method authorization
authorizationResponseHandler(for:)
Handles a
Response. Sends a HTTP request to the initialized token endpoint for the tokens.Availability
- iOS 13.0+
- macOS 10.15+
- tvOS 13.0+
- watchOS 6.0+
Framework
- Sw
Auth
Declaration
func authorizationResponseHandler(for: Response) async throwsParameters
for
Discussion
Tokens are saved to the Keychain instance provided by the initializer. The tokens are saved using the instance’s client id and the string “tokens” separated by a colon as the key. For example: “9d73bfb50b304543b35f41d427e6b76c:tokens”
If an HTTP error occurs, the token request will be retried once.