NimbleTOTP.verification_code

You're seeing just the function verification_code, go back to NimbleTOTP module for more information.
Link to this function

verification_code(secret, opts \\ [])

View Source

Generate Time-Based One-Time Password.

Options

  • :time - The time in unix format to be used. Default is System.os_time(:second)
  • :period - The period (in seconds) in which the code is valid. Default is 30.

Examples

NimbleTOTP.verification_code(secret)
#=> "569777"