mirror of
https://github.com/immich-app/immich
synced 2025-06-08 19:57:59 +00:00
fix: oauth (#18725)
This commit is contained in:
parent
97503d11c5
commit
9d04853b34
@ -40,8 +40,8 @@ export class OAuthRepository {
|
|||||||
redirect_uri: redirectUrl,
|
redirect_uri: redirectUrl,
|
||||||
scope: config.scope,
|
scope: config.scope,
|
||||||
state,
|
state,
|
||||||
code_challenge: codeChallenge,
|
code_challenge: client.serverMetadata().supportsPKCE() ? codeChallenge : '',
|
||||||
code_challenge_method: 'S256',
|
code_challenge_method: client.serverMetadata().supportsPKCE() ? 'S256' : '',
|
||||||
}).toString();
|
}).toString();
|
||||||
return { url, state, codeVerifier };
|
return { url, state, codeVerifier };
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user