function nextPath
nextPath(params: URLSearchParams): string | null

Returns the next of params when it is a path on this site, or null. Anything else, //elsewhere.example included, is ignored, so a link can't send someone off the site through the login page.

Parameters

Return Type

string | null

Usage

import { nextPath } from "src/utils/auth/next.ts";