mirror of
https://iceshrimp.dev/iceshrimp/akkoma-fe.git
synced 2025-12-13 07:23:03 +01:00
Do not create OAuth app until login
This commit is contained in:
parent
8fcd9c756d
commit
0e25b94186
2 changed files with 2 additions and 2 deletions
|
|
@ -345,7 +345,7 @@ const setConfig = async ({ store }) => {
|
||||||
const apiConfig = configInfos[0]
|
const apiConfig = configInfos[0]
|
||||||
const staticConfig = configInfos[1]
|
const staticConfig = configInfos[1]
|
||||||
|
|
||||||
await setSettings({ store, apiConfig, staticConfig }).then(getAppSecret({ store }))
|
await setSettings({ store, apiConfig, staticConfig })
|
||||||
}
|
}
|
||||||
|
|
||||||
const checkOAuthToken = async ({ store }) => {
|
const checkOAuthToken = async ({ store }) => {
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ const LoginForm = {
|
||||||
}
|
}
|
||||||
|
|
||||||
oauthApi.getOrCreateApp(data)
|
oauthApi.getOrCreateApp(data)
|
||||||
.then((app) => { oauthApi.login({ ...app, ...data }) })
|
.then((app) => { oauthApi.login({ ...data, ...app }) })
|
||||||
},
|
},
|
||||||
submitPassword () {
|
submitPassword () {
|
||||||
const { clientId } = this.oauth
|
const { clientId } = this.oauth
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue