Last active
January 9, 2022 08:38
-
-
Save hieptlccc/92f1b35dc6fc81fce6eaff0819a4cc6e to your computer and use it in GitHub Desktop.
login.js - login cometchat -webex clone
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
... | |
const loginWithCometChat = async (user) => { | |
if (!user) return; | |
const authKey = `${process.env.REACT_APP_COMETCHAT_AUTH_KEY}`; | |
const cometChatUser = await cometChat.login(user.id, authKey); | |
if (cometChatUser) { | |
... | |
} | |
}; | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment