Skip to content

Instantly share code, notes, and snippets.

@mbalex99
Created March 15, 2018 06:27
Show Gist options
  • Save mbalex99/3df2e6b886551404866236e90ef973ee to your computer and use it in GitHub Desktop.
Save mbalex99/3df2e6b886551404866236e90ef973ee to your computer and use it in GitHub Desktop.
Nickname Auth
const options = {
"provider": "nickname",
"providerToken": "god",
"userInfo": {
"is_admin": true
}
};
const user = await Realm.Sync.User.registerWithProvider(`https://INSTANCE_ADDRESS`, options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment