Skip to content

Login flow not triggered while using export command #114

@SujithThirumalaisamy

Description

@SujithThirumalaisamy

Description: While we use export command. The Interactive login is not triggered on invalid or expired session token.

Image

cli/packages/cmd/export.go

Lines 118 to 122 in ba904b4

loggedInUserDetails, err := util.GetCurrentLoggedInUserDetails(true)
if err != nil {
util.HandleError(err)
}
accessToken = loggedInUserDetails.UserCredentials.JTWToken

The issue seems to be here. We are not validating and calling the login function. We assume that the user is logged in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions