Created
July 29, 2020 14:24
-
-
Save AlexzanderFlores/5a278486d54308fe0c40ad7267d229b9 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 rememberMe = true // From your signup form | |
// Add in your own callbacks here to handle these events | |
const callback = { onSuccess: () => {}, onFailure: () => {} } | |
if (rememberMe) { | |
user.setDeviceStatusRemembered(callback) | |
} else { | |
user.setDeviceStatusNotRemembered(callback) | |
user.forgetDevice(callback) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment