mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-03-03 21:00:45 +00:00
15 lines
323 B
CoffeeScript
15 lines
323 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.logout = ->
|
|
auth.logout()
|
|
|
|
exports.signup = ->
|
|
open(config.urls.signup)
|