Skip to content

Commit 57f0ae9

Browse files
authored
fix registration in oauth window (#277)
## Изменения Должна быть пофикшена регистрация через оаутх.
1 parent 1f9e4aa commit 57f0ae9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/views/auth/OauthRegisterView.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useRouter } from 'vue-router';
33
import IrdomLayout from '@/components/IrdomLayout.vue';
44
import { useToolbar } from '@/store/toolbar';
55
import { useProfileStore } from '@/store/profile';
6-
import { AuthMethodLink, UNKNOWN_DEVICE } from '@/models';
6+
import { AuthMethodLink } from '@/models';
77
import apiClient from '@/api/';
88
99
const router = useRouter();
@@ -25,10 +25,7 @@ async function handleAccept() {
2525
}
2626
2727
const { response, data } = await apiClient.POST(`/auth/${idTokenIssuer}/registration`, {
28-
body: {
29-
id_token: idToken,
30-
session_name: navigator.userAgent ?? UNKNOWN_DEVICE,
31-
},
28+
body: { id_token: idToken },
3229
});
3330
if (data && data?.token) {
3431
localStorage.setItem('token', data.token);

0 commit comments

Comments
 (0)