Last active
March 5, 2024 09:08
-
-
Save Aaron2963/1654711b2c0686e4dd4b23723d3cc800 to your computer and use it in GitHub Desktop.
SecretCodeSet: 與各應用服務串接使用之金鑰碼、設定值
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"totp": { | |
"secret": "FDE393FE83ACAFEDAD3BC2931", | |
"timeOffset": -48392 | |
}, | |
"line": { | |
"accessToken": "xxxxxxx....", | |
"refreshToken": "xxxxxxx...." | |
}, | |
"lineNotify": { | |
"accessToken": "xxxxxxx...." | |
}, | |
"facebook": { | |
"accessToken": "xxxxxxx....", | |
"refreshToken": "xxxxxxx...." | |
}, | |
"google": { | |
"accessToken": "xxxxxxx....", | |
"refreshToken": "xxxxxxx...." | |
} | |
} |
line.Token
,lineNotify.Token
這兩個鍵不走小寫駝峰有特別的意思嗎?token
與accessToken
在意思上有區別嗎? 除了 TOTP 以外,其他都是 OAuth
去掉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
facebook id 之前是透過第三方登入呼叫facebook api
https://graph.facebook.com/v2.6/me?fields=name,email,gender....
傳入accesstoken回傳的參數
{"id": "xxxxxxxx", "email": "xxxxxxxxx"}