From 6c78509cd181d25d7ff77a6cf34652a7bdc150cc Mon Sep 17 00:00:00 2001 From: Quentin Vernot Date: Wed, 12 Jun 2024 12:56:50 +0200 Subject: [PATCH] chore(core): deprecate old OIDC flow --- packages/core/src/LocalUser/types.ts | 3 +++ packages/core/src/Tanker.ts | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/packages/core/src/LocalUser/types.ts b/packages/core/src/LocalUser/types.ts index 672574c7..ab19e1fd 100644 --- a/packages/core/src/LocalUser/types.ts +++ b/packages/core/src/LocalUser/types.ts @@ -19,6 +19,9 @@ export type PassphraseVerification = { passphrase: string; }; export type E2ePassphraseVerification = { e2ePassphrase: string; }; export type KeyVerification = { verificationKey: string; }; export type OidcAuthorizationCodeVerification = { oidcProviderId: string; oidcAuthorizationCode: string; oidcState: string; }; +/** + * @deprecated The entire OIDC flow has been reworked in version 4.2.0, "OidcVerification" has been deprecated as a result, use "OidcAuthorizationCodeVerification" instead + */ export type OidcVerification = { oidcIdToken: string; }; export type PhoneNumberVerification = { phoneNumber: string; verificationCode: string; }; export type PreverifiedEmailVerification = { preverifiedEmail: string; }; diff --git a/packages/core/src/Tanker.ts b/packages/core/src/Tanker.ts index ac479221..c6b4968f 100644 --- a/packages/core/src/Tanker.ts +++ b/packages/core/src/Tanker.ts @@ -267,11 +267,17 @@ export class Tanker extends EventEmitter { } }; + /** + * @deprecated The entire OIDC flow has been reworked in version 4.2.0, method "createOidcNonce" has been deprecated as a result + */ createOidcNonce = async () => { await this._initUnauthSession(); return this._unauthSession!.createOidcNonce(); }; + /** + * @deprecated The entire OIDC flow has been reworked in version 4.2.0, method "setOidcTestNonce" has been deprecated as a result + */ setOidcTestNonce = async (nonce: b64string) => { await this._initUnauthSession(); await this._unauthSession!.setOidcTestNonce(nonce);