Skip to content

Instantly share code, notes, and snippets.

@PamornT
Last active October 20, 2019 20:26
Show Gist options
  • Save PamornT/8929ba7a33f9d5133cd2f36f5f805034 to your computer and use it in GitHub Desktop.
Save PamornT/8929ba7a33f9d5133cd2f36f5f805034 to your computer and use it in GitHub Desktop.
...
} 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 );
// 12. Remove Access Token from RTDB
// 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