Fix team profile auth recovery
This commit is contained in:
@@ -132,6 +132,17 @@ export const useAuthStore = defineStore('auth', {
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
async disconnectTwitchBinding() {
|
||||
this.loading = true
|
||||
try {
|
||||
const response = await api.disconnectTwitchBinding()
|
||||
this.session = response.session
|
||||
writeStoredToken(response.session?.sessionToken ?? null)
|
||||
return response
|
||||
} finally {
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
async completeOAuthSession(sessionToken: string) {
|
||||
this.loading = true
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user