MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / parseJwtExpiresInSeconds

Function parseJwtExpiresInSeconds

server-source-code/internal/handler/auth.go:602–605  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

600}
601
602func parseJwtExpiresInSeconds(s string) int64 {
603 d := parseTfaRememberDuration(s)
604 return int64(d.Seconds())
605}
606
607// getTfaRememberMeExpiresIn returns TFA remember-me duration string (resolved from env -> DB -> default).
608func (h *AuthHandler) getTfaRememberMeExpiresIn() string {

Callers 1

Calls 1

parseTfaRememberDurationFunction · 0.85

Tested by

no test coverage detected