Skip to content

Commit 5b2fdcb

Browse files
committed
🐛 implement Apple Login process
1 parent 7504b72 commit 5b2fdcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/authLogin/authApple.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class AppleAuth {
4949
static ENDPOINT_URL = 'https://appleid.apple.com'
5050

5151
constructor(env: Env) {
52-
this.clientId = env.APPLE_CLIENT_ID
52+
this.clientId = env.APPLE_SIGN_CLIENT_ID
5353
this.keyId = env.APPLE_SIGN_KEY_ID
5454
this.privateKey = env.APPLE_SIGN_AUTH_KEY
5555
this.teamId = env.APPLE_SIGN_TEAM_ID
@@ -113,7 +113,7 @@ export class AppleAuth {
113113

114114
//  Sign in with Apple
115115
async loginWithApple(code: string, idToken: string, clientId: string, redirectUri?: string): Promise<AppleIdTokenType> {
116-
const appleClientId = clientId || this.clientId
116+
const appleClientId = clientId.length > 0 ? clientId : this.clientId
117117
try {
118118
const clientRes = await this.getClientSecret(appleClientId)
119119

0 commit comments

Comments
 (0)