Skip to content

Commit

Permalink
fix parse client
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Dec 1, 2023
1 parent 71080b8 commit b98b7b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/.vuepress/components/aliyundrive/Callback.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const url = new URL(window.location.href)
const code = url.searchParams.get("code")
const error = url.searchParams.get("error")
const error_description = url.searchParams.get("error_description")
const state = url.searchParams.get("state") || "::"
const [client_id, client_secret] = state.split("::")
const state = url.searchParams.get("state") || "Ojo="
const [client_id, client_secret] = window.atob(state).split("::")
interface Token {
token_type: string
Expand Down

0 comments on commit b98b7b1

Please sign in to comment.