chore: update instance admin sign in endpoint (#2973)

This commit is contained in:
Aaryan Khandelwal 2023-12-02 18:19:59 +05:30 committed by sriram veeraghanta
parent f1b748947a
commit 6392a24098

View File

@ -135,7 +135,7 @@ export class AuthService extends APIService {
} }
async instanceMagicSignIn(data: any): Promise<any> { async instanceMagicSignIn(data: any): Promise<any> {
const response = await this.post("/api/licenses/instances/admins/magic-sign-in/", data); const response = await this.post("/api/licenses/instances/admins/magic-sign-in/", data, { headers: {} });
if (response?.status === 200) { if (response?.status === 200) {
this.setAccessToken(response?.data?.access_token); this.setAccessToken(response?.data?.access_token);
this.setRefreshToken(response?.data?.refresh_token); this.setRefreshToken(response?.data?.refresh_token);