mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-24 17:11:43 +00:00
fixed more user error
This commit is contained in:
parent
eff70d8720
commit
4e8b50ed47
1 changed files with 2 additions and 1 deletions
|
|
@ -8,8 +8,9 @@ import settingsService from "../services/settingsService.js";
|
||||||
export default {
|
export default {
|
||||||
async mounted() {
|
async mounted() {
|
||||||
const url = new URL(location.href);
|
const url = new URL(location.href);
|
||||||
const token = url.searchParams.get("token");
|
const token = url.searchParams.get("state");
|
||||||
const code = url.searchParams.get("code");
|
const code = url.searchParams.get("code");
|
||||||
|
console.log(url)
|
||||||
await settingsService.GDriveAuth(code, token);
|
await settingsService.GDriveAuth(code, token);
|
||||||
|
|
||||||
window.opener.postMessage({ status: 'done' }, "*");
|
window.opener.postMessage({ status: 'done' }, "*");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue