Proper way to check if authenticated

mickaelmickael
in CLI

Hi,

What's the proper way to check if we are authenticated and if our session is still active ?

Currently, I try to grab a template and check the exit code, but I was wondering if there was something better ?

Thanks,

Comments

  • cohixcohix

    Team Member

    @mickael the fastest command would be op get account. We're have some ideas for a more standardized way of checking session "liveliness", but nothing being worked on as of yet.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file