Last active
January 16, 2018 21:01
-
-
Save tonyspiro/4dc2900f8c9498a507206a65d40efb2a to your computer and use it in GitHub Desktop.
Cosmic JS NPM module - Authenticate
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 Cosmic = require('cosmicjs')() | |
Cosmic.authenticate({ | |
email: 'you@youremail.com', | |
password: 'yourpassword' | |
}).then(data => { | |
console.log(data) | |
}).catch(err => { | |
console.log(err) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment