Skip to main content

lastlogin auth for smallweb

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
82%
Published
a month ago (0.5.13)
type alias LastLoginOptions

Options for configuring the LastLogin service.

Properties

optional
email: string | string[]

The email address or addresses of the user. It can also be passed using the LASTLOGIN_EMAIL environment variable.

optional
verifyEmail: (email: string) => Promise<boolean> | boolean

A function to verify the email address. It can return a boolean or a Promise that resolves to a boolean.

optional
domain: string

The domain of the login service.

optional
provider:
"google"
| "github"
| "facebook"
| "gitlab"
| "hello"

The provider name for the login service.

optional
public: boolean

Indicates that authentication is optional.

An array of route paths that do not require authentication.

An array of route paths that require authentication.

The secret key used to sign the JWT token. It can also be passed using the LASTLOGIN_SECRET_KEY environment variable.

Add Package

deno add jsr:@pomdtr/lastlogin

Import symbol

import { type LastLoginOptions } from "@pomdtr/lastlogin";

---- OR ----

Import directly with a jsr specifier

import { type LastLoginOptions } from "jsr:@pomdtr/lastlogin";

Add Package

npx jsr add @pomdtr/lastlogin

Import symbol

import { type LastLoginOptions } from "@pomdtr/lastlogin";

Add Package

yarn dlx jsr add @pomdtr/lastlogin

Import symbol

import { type LastLoginOptions } from "@pomdtr/lastlogin";

Add Package

pnpm dlx jsr add @pomdtr/lastlogin

Import symbol

import { type LastLoginOptions } from "@pomdtr/lastlogin";

Add Package

bunx jsr add @pomdtr/lastlogin

Import symbol

import { type LastLoginOptions } from "@pomdtr/lastlogin";