aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bridge_auth_addtoken.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/bridge_auth_addtoken.go')
-rw-r--r--commands/bridge_auth_addtoken.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/bridge_auth_addtoken.go b/commands/bridge_auth_addtoken.go
index 9a937f4d..338b170e 100644
--- a/commands/bridge_auth_addtoken.go
+++ b/commands/bridge_auth_addtoken.go
@@ -86,7 +86,7 @@ func runBridgeTokenAdd(cmd *cobra.Command, args []string) error {
}
}
- token := auth.NewToken(value, bridgeAuthAddTokenTarget)
+ token := auth.NewToken(bridgeAuthAddTokenTarget, value)
token.SetMetadata(auth.MetaKeyLogin, bridgeAuthAddTokenLogin)
if err := token.Validate(); err != nil {