Skip to content

Support One-time code typeΒ #125

@anton-stamenov-SWO

Description

@anton-stamenov-SWO

When type is set to -type="One-time Code", nothing is returned.

This should have 2 use cases though:

  1. return the secret behind the OTP
  2. return the OTP code and probably skip the auth for this

example:

$ enp -type="One-time Code" show <filter>
INFO[0003] > title: <filter-match>  login: XXX  cat.: XXX  OTP: otpauth://totp/XXX?secret=XXX&issuer=XXX
INFO[0003] > title: <filter-match>  login: XXX  cat.: XXX  OTP: XXX
$ enp otp <filter>
INFO[0003] > title: <filter-match> OTP: 123456
INFO[0003] > title: <filter-match> OTP: 234567
$ enp otp -title <title> # Exact single match otherwise error
123456

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions