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 GitHub
parent f4aa059da6
commit 9756abece4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);