Skip to content

3.3.0 - Session re-verification

Latest
Compare
Choose a tag to compare
@agis agis released this 22 Nov 14:29
· 16 commits to main since this release

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?: Returns true if the user must be re-verified
    • clerk_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 to clerk_user_needs_reverification?
    • clerk_reverification_response can be used to return the response from a Rack middleware