AgentDelegate

public class AgentDelegate<T> : AgentDelegateProtocol

Delegate class to dispatch Agent functions

  • authenticate() Asynchronous

    Authenticate with the OpenID Connect provider.

    Declaration

    Swift

    public func authenticate() async throws -> AuthCode

    Return Value

    The authorization code.

  • endSession(idToken:) Asynchronous

    End the session with the OpenID Connect provider.

    Declaration

    Swift

    @discardableResult
    public func endSession(idToken: String) async throws -> Bool

    Parameters

    idToken

    The ID token used to end the session.

    Return Value

    A boolean indicating whether the session was successfully ended.