Created
October 20, 2019 20:02
-
-
Save PamornT/d0ba19c47c2f05ecc8e2c1efa02d0531 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
... | |
if(event.message.text === 'register') { | |
let access_token = await issue_access_token(); | |
access_token = JSON.parse(access_token); | |
await initialLINE(access_token['token_type'], access_token['access_token']); | |
await admin.database().ref('token').child(event.source.userId).set(access_token); | |
// 9. Reply result to User Chat Room | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment