Returns whether the sanitizer supports the token format.
Masks the signature or a long payload for a recognized token format.
A short no-signature payload can remain unchanged. Unknown formats keep at most the first 15 characters. Empty inputs return an empty string.
StaticaccessCreates a sanitizer for supported access-token formats.
StaticcredentialsCreates a sanitizer for supported credential formats.
Produces a diagnostic token representation with sensitive data partly masked.
Sanitizing reduces accidental disclosure in logs, but it is not an encryption or access-control boundary. A recognized short
v0payload can remain visible. Avoid logging tokens when possible.Example