Skip to content

Instantly share code, notes, and snippets.

@Aaron2963
Last active March 5, 2024 09:08
Show Gist options
  • Save Aaron2963/1654711b2c0686e4dd4b23723d3cc800 to your computer and use it in GitHub Desktop.
Save Aaron2963/1654711b2c0686e4dd4b23723d3cc800 to your computer and use it in GitHub Desktop.
SecretCodeSet: 與各應用服務串接使用之金鑰碼、設定值
{
"totp": {
"secret": "FDE393FE83ACAFEDAD3BC2931",
"timeOffset": -48392
},
"line": {
"accessToken": "xxxxxxx....",
"refreshToken": "xxxxxxx...."
},
"lineNotify": {
"accessToken": "xxxxxxx...."
},
"facebook": {
"accessToken": "xxxxxxx....",
"refreshToken": "xxxxxxx...."
},
"google": {
"accessToken": "xxxxxxx....",
"refreshToken": "xxxxxxx...."
}
}
@Aaron2963
Copy link
Author

  1. line.Token, lineNotify.Token 這兩個鍵不走小寫駝峰有特別的意思嗎?
  2. tokenaccessToken 在意思上有區別嗎? 除了 TOTP 以外,其他都是 OAuth

@cody-ds
Copy link

cody-ds commented Mar 5, 2024

去掉id ,新增refreshToken 後,如下:
{
"totp": {
"secret": "FDE393FE83ACAFEDAD3BC2931",
"timeOffset": -48392
},
"line": {
"accessToken": "xxxxxxx....",
"refreshToken": "xxxxxxx...."
},
"lineNotify": {
"accessToken": "xxxxxxx...."
},
"facebook": {
"accessToken": "xxxxxxx....",
"refreshToken": "xxxxxxx...."
},
"google": {
"accessToken": "xxxxxxx....",
"refreshToken": "xxxxxxx...."
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment