mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
store oauth 2.0 user info in token context instead of being passed through frontend parameters
This commit is contained in:
+1
-2
@@ -191,11 +191,10 @@ export const useRootStore = defineStore('root', () => {
|
||||
});
|
||||
}
|
||||
|
||||
function authorizeOAuth2({ provider, password, token }: { provider: string, password?: string, token: string }): Promise<AuthResponse> {
|
||||
function authorizeOAuth2({ password, token }: { password?: string, token: string }): Promise<AuthResponse> {
|
||||
return new Promise((resolve, reject) => {
|
||||
services.authorizeOAuth2({
|
||||
req: {
|
||||
provider,
|
||||
password
|
||||
},
|
||||
token
|
||||
|
||||
Reference in New Issue
Block a user