Created
October 20, 2019 20:29
-
-
Save PamornT/44fdbbe66f5b6a64087db099d6a51745 to your computer and use it in GitHub Desktop.
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
... | |
} else if(event.message.text === 'revoke') { | |
let token = await admin.database().ref('token').child(event.source.userId).once('value'); | |
await initialLINE(token.val().token_type, token.val().access_token ); | |
await admin.database().ref('token').child(event.source.userId).remove(); | |
await reply(event.replyToken, { | |
type: 'text', | |
text: '\uDBC0\uDC9C ลบ token เรียบร้อยแล้ว จะใช้มาขอใหม่น้าา' | |
}); | |
// 14. Revoke Access Token | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment