Created
October 27, 2021 07:01
-
-
Save hieptl/338cb161ca6235839d378bde4e0f1415 to your computer and use it in GitHub Desktop.
login.js - Log in to CometChat - Encrypted Chat App
This file contains hidden or 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
... | |
const keys = Object.keys(val); | |
const user = val[keys[0]]; | |
cometChat.login(user.id, `${process.env.REACT_APP_COMETCHAT_AUTH_KEY}`).then( | |
User => { | |
... | |
}, | |
error => { | |
} | |
); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment