Created
September 8, 2020 07:54
-
-
Save putrikarunia/104bb3c633aa1310394388807e421b6f 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
const logOut = async () => { | |
const cotter = new Cotter(API_KEY_ID); // 👈 Specify your API KEY ID here | |
await cotter.logOut(); | |
setloggedIn(false); | |
window.location.href = "/"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment