feat: require client id for code API

This commit is contained in:
2025-06-07 18:46:46 +02:00
parent 9a0870dbbc
commit b9ccf6adac

View File

@ -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",