Skip to content

Commit b98b7b1

Browse files
committed
fix parse client
1 parent 71080b8 commit b98b7b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/.vuepress/components/aliyundrive/Callback.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const url = new URL(window.location.href)
77
const code = url.searchParams.get("code")
88
const error = url.searchParams.get("error")
99
const error_description = url.searchParams.get("error_description")
10-
const state = url.searchParams.get("state") || "::"
11-
const [client_id, client_secret] = state.split("::")
10+
const state = url.searchParams.get("state") || "Ojo="
11+
const [client_id, client_secret] = window.atob(state).split("::")
1212
1313
interface Token {
1414
token_type: string

0 commit comments

Comments
 (0)