Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boringstack-xyz/boringstack
/ hashOpaqueToken
Function
hashOpaqueToken
apps/api/src/lib/tokens/token-utils.ts:17–18 ·
view source on GitHub ↗
(token: string)
Source
from the content-addressed store, hash-verified
15
* password-reset / verification / refresh tokens are not immediately usable.
16
*/
17
export
const
hashOpaqueToken = (token: string): string =>
18
createHmac(
"sha256"
, env.JWT_SECRET).update(token).digest(
"hex"
);
Callers
15
register
Method · 0.90
create
Method · 0.90
refresh
Method · 0.90
revoke
Method · 0.90
request
Method · 0.90
issueRawTokenForTests
Method · 0.90
complete
Method · 0.90
issueChallenge
Method · 0.90
verifyTotpLogin
Method · 0.90
verifyRecoveryLogin
Method · 0.90
verify
Method · 0.90
resend
Method · 0.90
Calls
1
update
Method · 0.80
Tested by
4
seedFreshVerificationToken
Function · 0.72
seedResetTokenRow
Function · 0.72
seedResetToken
Function · 0.72
seedVerificationToken
Function · 0.72