mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-18 18:46:19 +08:00
fix(core): strict client oauth parameters check (#8159)
This commit is contained in:
@@ -112,6 +112,7 @@ export class AuthService extends Service {
|
||||
|
||||
async oauthPreflight(
|
||||
provider: OAuthProviderType,
|
||||
client: string,
|
||||
/** @deprecated*/ redirectUrl?: string
|
||||
) {
|
||||
const res = await this.fetchService.fetch('/api/oauth/preflight', {
|
||||
@@ -131,7 +132,7 @@ export class AuthService extends Service {
|
||||
'state',
|
||||
JSON.stringify({
|
||||
state: oauthUrl.searchParams.get('state'),
|
||||
client: environment.isElectron ? appInfo?.schema : 'web',
|
||||
client,
|
||||
})
|
||||
);
|
||||
url = oauthUrl.toString();
|
||||
|
||||
Reference in New Issue
Block a user