Instance Method

checkRefreshToken(tokens:)

Used Internally, refresh tokens are handled internally by the library.

Declaration

func checkRefreshToken(tokens: inout Tokens) async throws

Discussion

Called by the instance’s authenticatedRequest(for:numberOfRetries:) method. Checks if the instance has a refresh token. If it does, and the access token is expired, calls the refreshToken method.