Skip to content

Commit

Permalink
fix: loginMethod should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
soofstad committed Oct 23, 2024
1 parent e963804 commit d9982f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9982f6

Please sign in to comment.