Openmaize v0.19.2 Openmaize.OnetimePass

Module to handle one-time passwords for use in two factor authentication.

There is one option

  • add_jwt - the function used to add the JSON Web Token to the response

    • the default is &OpenmaizeJWT.Plug.add_token/5

Summary

Functions

Handle the one-time password POST request

Callback implementation for c:Plug.init/1

Functions

call(conn, arg)

Handle the one-time password POST request.

If the one-time password check is successful, a JSON Web Token will be added to the conn, either in a cookie or in the body of the response. The conn is then returned.

init(opts)

Callback implementation for c:Plug.init/1.