mirror of
https://github.com/tooot-app/app
synced 2025-02-27 17:17:38 +01:00
OAuth: send PKCE code verifier with token request (#640)
* OAuth: send PKCE code verifier with token request * Prevents typescript's warning Co-authored-by: xmflsct <me@xmflsct.com>
This commit is contained in:
parent
972ae46d45
commit
59a2d932e3
@ -96,7 +96,10 @@ const ComponentInstance: React.FC<Props> = ({
|
|||||||
scopes: ['read', 'write', 'follow', 'push'],
|
scopes: ['read', 'write', 'follow', 'push'],
|
||||||
redirectUri,
|
redirectUri,
|
||||||
code: promptResult.params.code,
|
code: promptResult.params.code,
|
||||||
extraParams: { grant_type: 'authorization_code' }
|
extraParams: {
|
||||||
|
grant_type: 'authorization_code',
|
||||||
|
...(request.codeVerifier && { code_verifier: request.codeVerifier })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{ tokenEndpoint: `https://${variables.domain}/oauth/token` }
|
{ tokenEndpoint: `https://${variables.domain}/oauth/token` }
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user