diff --git a/CHANGELOG.md b/CHANGELOG.md index 311957299..44fb16b70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `redirectToFactorChooser` now accepts a `stepUp` option to set the `stepUp` query param. - `redirectToFactor` now accepts a `stepUp` option to set the `stepUp` query param. +### Fixes + +- Fixed an issue where the `Session` recipe was not allowed in the pre-built UI list (it's still a no-op, but it shouldn't be a type issue) + ## [0.45.1] - 2024-08-09 ### Changes diff --git a/lib/build/ui/types.d.ts b/lib/build/ui/types.d.ts index 40a2b32c7..794478b9c 100644 --- a/lib/build/ui/types.d.ts +++ b/lib/build/ui/types.d.ts @@ -2,6 +2,7 @@ import type { EmailPasswordPreBuiltUI } from "../recipe/emailpassword/prebuiltui import type { EmailVerificationPreBuiltUI } from "../recipe/emailverification/prebuiltui"; import type { MultiFactorAuthPreBuiltUI } from "../recipe/multifactorauth/prebuiltui"; import type { PasswordlessPreBuiltUI } from "../recipe/passwordless/prebuiltui"; +import type { SessionPreBuiltUI } from "../recipe/session/prebuiltui"; import type { ThirdPartyPreBuiltUI } from "../recipe/thirdparty/prebuiltui"; import type { TOTPPreBuiltUI } from "../recipe/totp/prebuiltui"; export declare type ReactRouterDomWithCustomHistory = { @@ -18,4 +19,5 @@ export declare type PreBuiltRecipes = ( | typeof EmailVerificationPreBuiltUI | typeof MultiFactorAuthPreBuiltUI | typeof TOTPPreBuiltUI + | typeof SessionPreBuiltUI )[]; diff --git a/lib/ts/ui/types.ts b/lib/ts/ui/types.ts index fb1e0e2ad..c5d366605 100644 --- a/lib/ts/ui/types.ts +++ b/lib/ts/ui/types.ts @@ -2,6 +2,7 @@ import type { EmailPasswordPreBuiltUI } from "../recipe/emailpassword/prebuiltui import type { EmailVerificationPreBuiltUI } from "../recipe/emailverification/prebuiltui"; import type { MultiFactorAuthPreBuiltUI } from "../recipe/multifactorauth/prebuiltui"; import type { PasswordlessPreBuiltUI } from "../recipe/passwordless/prebuiltui"; +import type { SessionPreBuiltUI } from "../recipe/session/prebuiltui"; import type { ThirdPartyPreBuiltUI } from "../recipe/thirdparty/prebuiltui"; import type { TOTPPreBuiltUI } from "../recipe/totp/prebuiltui"; @@ -18,4 +19,5 @@ export type PreBuiltRecipes = ( | typeof EmailVerificationPreBuiltUI | typeof MultiFactorAuthPreBuiltUI | typeof TOTPPreBuiltUI + | typeof SessionPreBuiltUI )[]; diff --git a/test/with-typescript/src/App.tsx b/test/with-typescript/src/App.tsx index 64ae7db8e..4f4565349 100644 --- a/test/with-typescript/src/App.tsx +++ b/test/with-typescript/src/App.tsx @@ -33,7 +33,7 @@ import { EmailPasswordPreBuiltUI, ResetPasswordUsingToken as EmailPasswordResetPasswordUsingToken, } from "../../../recipe/emailpassword/prebuiltui"; -import { AccessDeniedScreen } from "../../../recipe/session/prebuiltui"; +import { SessionPreBuiltUI, AccessDeniedScreen } from "../../../recipe/session/prebuiltui"; import { LinkClicked as PasswordlessLinkClicked } from "../../../recipe/passwordless/prebuiltui"; import EmailVerification from "../../../recipe/emailverification"; import MultiFactorAuth from "../../../recipe/multifactorauth"; @@ -1105,7 +1105,7 @@ function testAuthPagePropTypes() { // @ts-expect-error This has to be a valid first factor , , ];