diff --git a/web/src/api/code.ts b/web/src/api/code.ts index 19eb222..5d12857 100644 --- a/web/src/api/code.ts +++ b/web/src/api/code.ts @@ -4,10 +4,14 @@ export interface CodeResponse { code: string; } -export const codeApi = async (accessToken: string, nonce: string) => { +export const codeApi = async ( + accessToken: string, + nonce: string, + clientId: string, +) => { const response = await axios.post( "/api/v1/oauth/code", - { nonce }, + { nonce, client_id: clientId }, { headers: { "Content-Type": "application/json",