Setaria.valid_totp

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

valid_totp(token, secret, opts \\ [])

Specs

valid_totp(token :: String.t(), secret :: String.t(), opts :: Keyword.t()) ::
  boolean()

Validate TOTP with secret.

  • opts
  • encoded_secret: false : secret is not base32 encoded.
  • timestamp : timestamp, default is current timestamp