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) => {
|
this.embark.registerConsoleCommand((cmd, _options) => {
|
||||||
return {
|
return {
|
||||||
match: () => cmd === "token",
|
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) => {
|
process: (callback) => {
|
||||||
utils.copyToClipboard(this.authToken);
|
utils.copyToClipboard(this.authToken);
|
||||||
callback(null, __('Token copied to clipboard: %s', this.authToken));
|
callback(null, __('Token copied to clipboard: %s', this.authToken));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
registerEvents() {
|
registerEvents() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user