mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-05-03 01:23:05 +00:00
Increase readability of authenticate()
This commit is contained in:
parent
25eedd22a0
commit
9bfd686c5c
@ -24,7 +24,8 @@ settings = require('../settings')
|
|||||||
#
|
#
|
||||||
exports.authenticate = (credentials, callback) ->
|
exports.authenticate = (credentials, callback) ->
|
||||||
server.post settings.get('urls.authenticate'), credentials, (error, response) ->
|
server.post settings.get('urls.authenticate'), credentials, (error, response) ->
|
||||||
return callback(error, response?.body)
|
savedToken = response?.body
|
||||||
|
return callback(error, savedToken)
|
||||||
|
|
||||||
# Login to Resin.io
|
# Login to Resin.io
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user