elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/next-auth/token / 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.
• obj: unknown
• onlyAllowSubset?: "bearer"
| "bearer"
[]
obj is "bearer"