createOidc()
The createOidc() function is a function that assists in creating an OpenID Connect (OIDC) client, which can be utilized in your application for authentication purposes.
params: An object containing the following properties:
issuerUri: string The URI of the OpenID Connect issuer.
clientId: string The client ID assigned to your application.
transformUrlBeforeRedirect?: (url:string) => string (Optional), A function that transforms the string URL before redirection.
getExtraQueryParams?: () => Record<string,string> (Optional), A function that returns extra query parameters.
publicUrl?: string (Optional), The public URL of your application, useful when your app is not hosted at the origin of the domain.
A Promise that resolves to an object of type Oidc, which can be either Oidc.LoggedIn or Oidc.NotLoggedIn.
Oidc.LoggedIn
Represents a logged-in state.
renewTokens: () => Promise<void> A function to renew tokens.
Oidc.NotLoggedIn
Represents a not-logged-in state.
loginA function to initiate the login process.