Module exposing: UserPasskey, PASSKEY_NAME_MAX_LENGTH
// Source: https://github.com/argos-ci/argos | License: MIT | Copyright 2017 Olivier Tassinari & Greg Bergé
// Provided via justclaw.it.com; keep this notice with the code.
import type { RelationMappings } from "objection";
import { Model } from "../util/model";
import { timestampsSchema } from "../util/schemas";
import { User } from "./User";
/** Matches the `varchar(255)` column, so an oversized name fails validation
* rather than reaching Postgres and raising a 500. */
export const PASSKEY_NAME_MAX_LENGTH = 255;
export class UserPasskey extends Model {
static override tableName = "user_passkeys";
/**
* Transports a browser may report for a credential. Unknown values are
* dropped on the way in (see `src/auth/passkey.ts`): the list is only ever
* replayed to the browser
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key