mirror of
https://github.com/immich-app/immich.git
synced 2026-07-14 09:00:59 +00:00
fix: oauth (#18725)
This commit is contained in:
parent
97503d11c5
commit
9d04853b34
1 changed files with 2 additions and 2 deletions
|
|
@ -40,8 +40,8 @@ export class OAuthRepository {
|
|||
redirect_uri: redirectUrl,
|
||||
scope: config.scope,
|
||||
state,
|
||||
code_challenge: codeChallenge,
|
||||
code_challenge_method: 'S256',
|
||||
code_challenge: client.serverMetadata().supportsPKCE() ? codeChallenge : '',
|
||||
code_challenge_method: client.serverMetadata().supportsPKCE() ? 'S256' : '',
|
||||
}).toString();
|
||||
return { url, state, codeVerifier };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue