feat: migrate auth0 provider to nbs

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-09-02 15:27:11 +02:00
parent b1d16d2422
commit d908d8c246
22 changed files with 686 additions and 218 deletions
+1
View File
@@ -503,6 +503,7 @@ export class PassportOAuthAuthenticatorHelper {
// (undocumented)
authenticate(
input: OAuthAuthenticatorAuthenticateInput,
options?: Record<string, string>,
): Promise<OAuthAuthenticatorResult<PassportProfile>>;
// (undocumented)
static defaultProfileTransform: ProfileTransform<
@@ -85,12 +85,13 @@ export class PassportOAuthAuthenticatorHelper {
async authenticate(
input: OAuthAuthenticatorAuthenticateInput,
options?: Record<string, string>,
): Promise<OAuthAuthenticatorResult<PassportProfile>> {
const { result, privateInfo } =
await PassportHelpers.executeFrameHandlerStrategy<
PassportOAuthResult,
PassportOAuthPrivateInfo
>(input.req, this.#strategy);
>(input.req, this.#strategy, options);
return {
fullProfile: result.fullProfile as PassportProfile,