Options
All
  • Public
  • Public/Protected
  • All
Menu

PAOIDCClient

Index

Type aliases

EventTypes

EventTypes: "user_logout" | "user_login" | "silent_renew_success" | "silent_renew_error" | "session_change" | "session_error"

Listener

Listener: (...args: any) => void

Type declaration

    • (...args: any): void
    • Parameters

      • Rest ...args: any

      Returns void

Variables

Events

Events: { SESSION_CHANGE: "session_change"; SILENT_RENEW_ERROR: "silent_renew_error"; SILENT_RENEW_SUCCESS: "silent_renew_success"; USER_LOGIN: "user_login"; USER_LOGOUT: "user_logout" } = ...

Type declaration

  • SESSION_CHANGE: "session_change"
  • SILENT_RENEW_ERROR: "silent_renew_error"
  • SILENT_RENEW_SUCCESS: "silent_renew_success"
  • USER_LOGIN: "user_login"
  • USER_LOGOUT: "user_logout"

Functions

createOIDCClient

  • createOIDCClient(options: IPlusAuthClientOptions): Promise<OIDCClient>
  • Create OIDC client with initializing it. It resolves issuer metadata, jwks keys and check if user is authenticated in OpenId Connect provider.

    Parameters

    • options: IPlusAuthClientOptions

    Returns Promise<OIDCClient>