mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 23:42:24 +00:00
Auto-merge for PR #846 via VersionBot
Throw a clear error when logging in with an invalid token
This commit is contained in:
commit
143d88f3df
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
|
|||||||
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
## v7.2.2 - 2018-04-04
|
||||||
|
|
||||||
|
* Throw a clear error when logging in with an invalid token #846 [Tim Perry]
|
||||||
|
|
||||||
## v7.2.1 - 2018-03-29
|
## v7.2.1 - 2018-03-29
|
||||||
|
|
||||||
* Update docker-qemu-transpose to avoid the broken 0.4.1 release #839 [Tim Perry]
|
* Update docker-qemu-transpose to avoid the broken 0.4.1 release #839 [Tim Perry]
|
||||||
|
@ -88,6 +88,11 @@ exports.login =
|
|||||||
name: 'token'
|
name: 'token'
|
||||||
type: 'input'
|
type: 'input'
|
||||||
.then(resin.auth.loginWithToken)
|
.then(resin.auth.loginWithToken)
|
||||||
|
.tap ->
|
||||||
|
resin.auth.whoami()
|
||||||
|
.then (username) ->
|
||||||
|
if !username
|
||||||
|
patterns.expectedError('Token authentication failed')
|
||||||
else if options.credentials
|
else if options.credentials
|
||||||
return patterns.authenticate(options)
|
return patterns.authenticate(options)
|
||||||
else if options.web
|
else if options.web
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "resin-cli",
|
"name": "resin-cli",
|
||||||
"version": "7.2.1",
|
"version": "7.2.2",
|
||||||
"description": "The official resin.io CLI tool",
|
"description": "The official resin.io CLI tool",
|
||||||
"main": "./build/actions/index.js",
|
"main": "./build/actions/index.js",
|
||||||
"homepage": "https://github.com/resin-io/resin-cli",
|
"homepage": "https://github.com/resin-io/resin-cli",
|
||||||
|
Loading…
Reference in New Issue
Block a user