TokenRefreshing

public protocol TokenRefreshing

Defines methods for Token refreshing.

  • Refreshes a token.

    Declaration

    Swift

    func refresh(refreshToken: String, completion: @escaping TokenInfoClosure)

    Parameters

    refreshToken

    The token to refresh.

    completion

    Returns the token data or an error.

  • Exchange an authorization code for an access token

    Declaration

    Swift

    func getToken(withCode: String, completion: @escaping TokenInfoClosure)

    Parameters

    code

    Authorization code

    completion

    Returns the token data or an error.