mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-06 05:54:10 +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)
|