Fix auth login (#1074)

This commit is contained in:
Geometrically 2023-04-03 10:11:10 -07:00 committed by GitHub
parent ccf81ff7b9
commit a37210b22e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 528 additions and 616 deletions

View File

@ -413,9 +413,10 @@ export default defineNuxtComponent({
this.runAnalytics() this.runAnalytics()
}, },
}, },
mounted() { async mounted() {
this.runAnalytics() this.runAnalytics()
if (this.$route.query.code) { if (this.$route.query.code) {
await useAuth(this.$route.query.code)
window.history.replaceState(history.state, null, this.$route.path) window.history.replaceState(history.state, null, this.$route.path)
} }
}, },

View File

@ -17,7 +17,7 @@
"eslint": "^8.33.0", "eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0", "eslint-config-prettier": "^8.6.0",
"eslint-plugin-vue": "^9.9.0", "eslint-plugin-vue": "^9.9.0",
"nuxt": "^3.3.2", "nuxt": "^3.3.3",
"prettier": "^2.8.3", "prettier": "^2.8.3",
"sass": "^1.58.0", "sass": "^1.58.0",
"typescript": "^4.9.5", "typescript": "^4.9.5",

View File

@ -31,8 +31,8 @@
:key="project.id" :key="project.id"
:name="project.title" :name="project.title"
:description="project.description" :description="project.description"
:created-at="project.published" :created-at="project.queued"
:updated-at="project.updated" :updated-at="project.queued"
:icon-url="project.icon_url" :icon-url="project.icon_url"
:categories="project.categories" :categories="project.categories"
:client-side="project.client_side" :client-side="project.client_side"

1135
yarn.lock

File diff suppressed because it is too large Load Diff