Skip to content

client may "register" in the local credential store before registering remotely #31

@rabbah

Description

@rabbah

const register = async () => {
const { username, password } = await getUserCreds();
await setClientCreds({
accountName: 'Commander CLI',
username,
password,
client: 'cli',
});

try {
const res = await invokeCommand('register');
const text = res.data.attachments
? res.data.attachments[0].text

Note the credential store is updated first. So if the remote registration fails, the credential store is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions