Created
February 16, 2023 18:14
-
-
Save shanwixcode/0b46a6d2c81e75cb4c034b616ecf90da 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
import {authentication} from 'wix-members-backend'; | |
export function register(object) { | |
return authentication.register(object.email, object.password, object.options) | |
.then( (registrationResult) => { | |
return registrationResult; | |
}) | |
.catch( (error) => { | |
return error; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment