feat: require client id for code API
This commit is contained in:
@ -4,10 +4,14 @@ export interface CodeResponse {
|
|||||||
code: string;
|
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(
|
const response = await axios.post(
|
||||||
"/api/v1/oauth/code",
|
"/api/v1/oauth/code",
|
||||||
{ nonce },
|
{ nonce, client_id: clientId },
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
Reference in New Issue
Block a user