mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-20 14:13:07 +00:00
12 lines
287 B
CoffeeScript
12 lines
287 B
CoffeeScript
open = require('open')
|
|
auth = require('../auth/auth')
|
|
config = require('../config')
|
|
|
|
exports.login = (credentials) ->
|
|
parsedCredentials = auth.parseCredentials(credentials)
|
|
auth.login parsedCredentials, (error) ->
|
|
throw error if error?
|
|
|
|
exports.signup = ->
|
|
open(config.urls.signup)
|