Skip to content

Instantly share code, notes, and snippets.

@AlexzanderFlores
Created July 29, 2020 14:24
Show Gist options
  • Save AlexzanderFlores/5a278486d54308fe0c40ad7267d229b9 to your computer and use it in GitHub Desktop.
Save AlexzanderFlores/5a278486d54308fe0c40ad7267d229b9 to your computer and use it in GitHub Desktop.
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