Do not create OAuth app until login

This commit is contained in:
Kopper 2024-11-29 15:45:13 +03:00
parent 8fcd9c756d
commit 0e25b94186
2 changed files with 2 additions and 2 deletions

View file

@ -345,7 +345,7 @@ const setConfig = async ({ store }) => {
const apiConfig = configInfos[0]
const staticConfig = configInfos[1]
await setSettings({ store, apiConfig, staticConfig }).then(getAppSecret({ store }))
await setSettings({ store, apiConfig, staticConfig })
}
const checkOAuthToken = async ({ store }) => {

View file

@ -43,7 +43,7 @@ const LoginForm = {
}
oauthApi.getOrCreateApp(data)
.then((app) => { oauthApi.login({ ...app, ...data }) })
.then((app) => { oauthApi.login({ ...data, ...app }) })
},
submitPassword () {
const { clientId } = this.oauth