Skip to content

Commit

Permalink
Add config to prevent auto logout on token refresh errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DonOmalVindula committed Oct 31, 2024
1 parent 12a2736 commit a5577b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import {
* Default configurations.
*/
const DefaultConfig: Partial<AuthClientConfig<unknown>> = {
autoLogoutOnTokenError: true,
clockTolerance: 300,
enablePKCE: true,
responseMode: ResponseMode.query,
Expand Down
1 change: 1 addition & 0 deletions lib/src/models/client-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { OIDCEndpoints } from "./oidc-provider-meta-data";
import { ResponseMode } from "../constants";

export interface DefaultAuthClientConfig {
autoLogoutOnTokenError?: boolean;
signInRedirectURL: string;
signOutRedirectURL?: string;
clientHost?: string;
Expand Down

0 comments on commit a5577b6

Please sign in to comment.