This release adds helpers to support the session re-verification flow (also known as Step Up).
Added
- Helpers for implementing re-verification flows #72:
clerk_user_needs_reverification?
: Returnstrue
if the user must be re-verifiedclerk_render_reverification
: Renders the JSON response required by Clerk.js to kickstart a re-verification flow. Meant to be called in a Rails controller action.Clerk::StepUp::PRESETS
: contains configuration presets for passing toclerk_user_needs_reverification?
clerk_reverification_response
can be used to return the response from a Rack middleware