OidcUser

public class OidcUser : User, @unchecked Sendable

Class for an OIDC User

  • OidcUser initializer

    Declaration

    Swift

    public init(config: OidcClientConfig)

    Parameters

    config

    The configuration for the OIDC client.

  • token() Asynchronous

    Gets the token for the user.

    Declaration

    Swift

    public func token() async -> Result<Token, OidcError>

    Return Value

    The token for the user.

  • revoke() Asynchronous

    Revokes the user’s token.

    Declaration

    Swift

    public func revoke() async
  • userinfo(cache:) Asynchronous

    Gets the user information.

    Declaration

    Swift

    public func userinfo(cache: Bool = true) async -> Result<UserInfo, OidcError>

    Parameters

    cache

    Whether to cache the user information.

    Return Value

    The user information.

  • logout() Asynchronous

    Logs out the user.

    Declaration

    Swift

    public func logout() async