Created
November 16, 2021 02:52
-
-
Save hieptl/a5408e9529a49987c5d94d677526e87d to your computer and use it in GitHub Desktop.
login.js - Login CometChat - Instagram Clone React Node
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 loginCometChat = async (user) => { | |
| const authKey = `${process.env.REACT_APP_COMETCHAT_AUTH_KEY}`; | |
| return await cometChat.login(user.id, authKey); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment