From d9982f69a5ec24d833891afa6115be826c9a3281 Mon Sep 17 00:00:00 2001 From: Stig Ofstad Date: Wed, 23 Oct 2024 12:47:50 +0200 Subject: [PATCH] fix: loginMethod should be optional --- src/package.json | 2 +- src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package.json b/src/package.json index 9f40909..386afe3 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "react-oauth2-code-pkce", - "version": "1.22.0", + "version": "1.22.1", "description": "Provider agnostic react package for OAuth2 Authorization Code flow with PKCE", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/types.ts b/src/types.ts index 627beab..c759889 100644 --- a/src/types.ts +++ b/src/types.ts @@ -66,7 +66,7 @@ export type TAuthConfig = { logoutRedirect?: string preLogin?: () => void postLogin?: () => void - loginMethod: 'redirect' | 'popup' + loginMethod?: 'redirect' | 'popup' onRefreshTokenExpire?: (event: TRefreshTokenExpiredEvent) => void decodeToken?: boolean autoLogin?: boolean