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
4 changed files with 528 additions and 616 deletions

View File

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