balena-cli/lib/actions/auth.coffee
2014-11-18 08:41:13 -04:00

7 lines
187 B
CoffeeScript

auth = require('../auth/auth')
exports.login = (credentials) ->
parsedCredentials = auth.parseCredentials(credentials)
auth.login parsedCredentials, (error) ->
throw error if error?