Skip to content

Commit

Permalink
Make onSessionExpired default to false (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulAsjes authored Sep 11, 2024
1 parent bf9b621 commit b009a97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workos-inc/authkit-nextjs",
"version": "0.10.0",
"version": "0.10.1",
"description": "Authentication and session helpers for using WorkOS & AuthKit with Next.js",
"sideEffects": false,
"type": "commonjs",
Expand Down
2 changes: 1 addition & 1 deletion src/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface AuthKitProviderProps {
onSessionExpired?: false | (() => void);
}

export const AuthKitProvider = ({ children, onSessionExpired }: AuthKitProviderProps) => {
export const AuthKitProvider = ({ children, onSessionExpired = false }: AuthKitProviderProps) => {
React.useEffect(() => {
// Return early if the session expired checks are disabled.
if (onSessionExpired === false) {
Expand Down
2 changes: 1 addition & 1 deletion src/workos.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { WorkOS } from '@workos-inc/node';
import { WORKOS_API_HOSTNAME, WORKOS_API_HTTPS, WORKOS_API_KEY, WORKOS_API_PORT } from './env-variables.js';

export const VERSION = '0.10.0';
export const VERSION = '0.10.1';

const options = {
apiHostname: WORKOS_API_HOSTNAME,
Expand Down

0 comments on commit b009a97

Please sign in to comment.