Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 869 Bytes

File metadata and controls

28 lines (16 loc) · 869 Bytes

elections-cpl.api.hscc.bdpa.orgDocs


elections-cpl.api.hscc.bdpa.org / lib/next-auth/token / isAllowedScheme

Function: isAllowedScheme()

isAllowedScheme(obj, onlyAllowSubset?): obj is "bearer"

Type guard that returns true if obj satisfies the AuthenticationScheme interface. Additional constraints may be enforced such that obj is among a subset of allowable schemes via the onlyAllowSubset parameter.

Parameters

obj: unknown

onlyAllowSubset?: "bearer" | "bearer"[]

Returns

obj is "bearer"

Source

lib/next-auth/token.ts:173