Verify a CSRF token.
function verify | Bun module | Bun BuildDocsReferenceGuidesBlogDiscord/Bun/CSRF/verifyFverify BuildDocsReferenceGuidesBlogDiscord /Bun/CSRF/verifyFverify CSRF.verifyfunction verify(token: string,options?: CSRFVerifyOptions): boolean; @param token @param options @returns Referenced typesinterface CSRFVerifyOptionsalgorithm?: CSRFAlgorithm encoding?: 'base64' | 'base64url' | 'hex' maxAge?: number secret?: string
Search the reference...
/
function
The token to verify.
The options for the token.
True if the token is valid, false otherwise.
The algorithm to use for the token.
The encoding of the token.
The number of milliseconds until the token expires. 0 means the token never expires.
The secret to use for the token. If not provided, a random default secret will be generated in memory and used.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →function verify | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for function bun.CSRF.verify | Bun