All blocks
Block
Available
Free

Sign-in security

Version
0.1.0
Database part
Yes

The contract

Takes a login attempt. Returns signed in, asked for a second step, or refused.

Settings

NameWhat it does
idleTimeoutHow long a person may be quiet before they are signed out. Defaults to 30 minutes.
idleWarningHow long before the idle sign-out the person is warned. Defaults to 2 minutes.
protectedTablesThe app's own tables a session that owes its code may not touch, each given the policy with one line in the app's own migration.
idleMarkKeyThe storage key that remembers an idle sign-out.

Requires

Live demo

The account has
The person types
The sign-in service is

Choose a set-up and sign in. This runs the same code your app would run, against a sign-in service that lives in this page.

Idle sign-out

An app signs a person out after 30 minutes with no activity and warns 2 minutes before. This demo uses 20 seconds and warns after 10.

Not started.