Created
October 20, 2019 20:28
-
-
Save PamornT/0830371396bbe561bf74ac6d6e1c1614 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(); | |
// 13. Reply result to User Chat Room | |
// 14. Revoke Access Token | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment