From 9341e511794948903d7e360826fbc0c303e441ed Mon Sep 17 00:00:00 2001 From: Thiago Ramalho Date: Mon, 30 Sep 2024 17:03:15 -0300 Subject: [PATCH] chore: updates to improve docs --- .../src/config/auth-apple-default.config.ts | 12 ++++++------ packages/nestjs-auth-apple/src/index.ts | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/nestjs-auth-apple/src/config/auth-apple-default.config.ts b/packages/nestjs-auth-apple/src/config/auth-apple-default.config.ts index 45b7dfa3..deec3241 100644 --- a/packages/nestjs-auth-apple/src/config/auth-apple-default.config.ts +++ b/packages/nestjs-auth-apple/src/config/auth-apple-default.config.ts @@ -15,13 +15,13 @@ export const authAppleDefaultConfig = registerAs( * The login dto */ loginDto: AuthAppleLoginDto, - clientID: process.env.APPLE_CLIENT_ID ?? 'client_id', - callbackURL: process.env.APPLE_CALLBACK_URL ?? 'callback_url', - teamID: process.env.APPLE_TEAM_ID ?? 'teamID', - keyID: process.env.APPLE_KEY_ID ?? 'keyID', - privateKeyLocation: process.env.APPLE_PRIVATE_KEY_LOCATION ?? 'p8-location', + clientID: process.env.APPLE_CLIENT_ID ?? '', + callbackURL: process.env.APPLE_CALLBACK_URL ?? '', + teamID: process.env.APPLE_TEAM_ID ?? '', + keyID: process.env.APPLE_KEY_ID ?? '', + privateKeyLocation: process.env.APPLE_PRIVATE_KEY_LOCATION ?? '', privateKeyString: - process.env.APPLE_PRIVATE_KEY_STRING ?? 'private key string', + process.env.APPLE_PRIVATE_KEY_STRING ?? '', passReqToCallback: false, scope: 'APPLE_SCOPE' in process.env && process.env.APPLE_SCOPE diff --git a/packages/nestjs-auth-apple/src/index.ts b/packages/nestjs-auth-apple/src/index.ts index ed11390f..4a0e9ab9 100644 --- a/packages/nestjs-auth-apple/src/index.ts +++ b/packages/nestjs-auth-apple/src/index.ts @@ -16,6 +16,7 @@ export { AuthAppleStrategy } from './auth-apple.strategy'; // interfaces export { AuthAppleProfileInterface } from './interfaces/auth-apple-profile.interface'; export { AuthAppleCredentialsInterface } from './interfaces/auth-apple-credentials.interface'; +export { AuthAppleServiceInterface } from './interfaces/auth-apple-service.interface'; export { AuthAppleGuard,