mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-27 14:05:27 +00:00
chore(authenticator): remove copyToken command and move logic token
This commit is contained in:
parent
d0d3a35e9e
commit
e2257e8026
@ -50,22 +50,12 @@ class Authenticator {
|
||||
this.embark.registerConsoleCommand((cmd, _options) => {
|
||||
return {
|
||||
match: () => cmd === "token",
|
||||
process: (callback) => {
|
||||
callback(null, __('Your authentication token: %s \nYou can use the command `copytoken` to copy the authentication token to your clipboard', this.authToken));
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
this.embark.registerConsoleCommand((cmd, _options) => {
|
||||
return {
|
||||
match: () => cmd === "copytoken",
|
||||
process: (callback) => {
|
||||
utils.copyToClipboard(this.authToken);
|
||||
callback(null, __('Token copied to clipboard: %s', this.authToken));
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
registerEvents() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user