We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a9f955 commit af8ae3fCopy full SHA for af8ae3f
src/services/cnblogs-oauth.service.ts
@@ -47,12 +47,13 @@ export class CnblogsOAuthService extends Disposable {
47
48
async getAuthorizationInfo(authorizationCode: string, codeVerifier: string): Promise<UserAuthorizationInfo> {
49
let url = globalState.config.oauth.authority + globalState.config.oauth.tokenEndpoint;
50
- const { clientId } = globalState.config.oauth;
+ const { clientId, clientSecret } = globalState.config.oauth;
51
const s = new URLSearchParams([
52
['code', authorizationCode],
53
['code_verifier', codeVerifier],
54
['grant_type', 'authorization_code'],
55
['client_id', clientId],
56
+ ['client_secret', clientSecret],
57
['redirect_uri', this.listenUrl],
58
]);
59
url = `${url}`;
0 commit comments