mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-04 04:54:09 +00:00
9 lines
271 B
CoffeeScript
9 lines
271 B
CoffeeScript
server = require('../../server/server')
|
|
|
|
exports.getToken = (credentials, callback) ->
|
|
server.post '/login_', credentials, (error, response) ->
|
|
return callback(error, response?.body)
|
|
|
|
exports.login = (credentials, callback) ->
|
|
exports.getToken(credentials, callback)
|