Query.token()
Get the Token
document or
JWT payload for the query’s
authentication secret.
Description
Gets the Token
document or
JWT payload for the query’s
authentication secret.
If the secret is a token, the method returns
the token’s Token
system collection
document. This token document is distinct from the token’s
identity document.
If the secret is a JWT, the method returns the JWT’s payload.
If the secret is a key, the method returns
null
.