Skip to content

Auth · Repositories

3 modules · 11 exports · 1 repository · 4 e2e tests · 8 routes

Every table a function queries, its own helpers included, read or written. Calls to other repositories are listed apart, their tables are on their own page.

LogInLinkRepository

app/features/auth/LogInLinkRepository.server.ts
Tables
LogInLink
Calls
no other repositories
Imports
no other modules
Used by
1 script2 other

Functions & values

function

insert

:10

Creates a login link valid for LOG_IN_LINK_VALID_FOR_MINUTES.

export function insert(userId: number)
TablesLogInLink
function

deleteByCode

:25

Deletes a login link by its code.

export function deleteByCode(code: string)
TablesLogInLink
function

findValidByCode

:30

Non-expired login link by code.

export function findValidByCode(code: string)
TablesLogInLink
Unit tests (2)
Unit tests not about one export (3)