Skip to content

Commit c1facb8

Browse files
author
Manus AI
committed
Update verify command to display registry token after verification
1 parent 26cdd4a commit c1facb8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,16 @@ async function verifyCommand(options) {
893893

894894
if (response.data.status === 'success') {
895895
console.log('\n✓ Email verified successfully!');
896-
console.log('✓ You can now login with: flb login -u <username>' + (host !== 'https://api.fleetbase.io' ? ` --host ${host}` : ''));
896+
897+
// Display registry token if provided
898+
if (response.data.token) {
899+
console.log('\n🔑 Your Registry Token:');
900+
console.log(` ${response.data.token}`);
901+
console.log('\n💡 Save this token securely! You\'ll need it to authenticate with the registry.');
902+
console.log(' Use: flb set-auth ' + response.data.token + (host !== 'https://api.fleetbase.io' ? ` --host ${host}` : ''));
903+
}
904+
905+
console.log('\n✓ You can now login with: flb login -u <username>' + (host !== 'https://api.fleetbase.io' ? ` --host ${host}` : ''));
897906
} else {
898907
console.error('\nVerification failed:', response.data.message || 'Unknown error');
899908
process.exit(1);

0 commit comments

Comments
 (0)