verifyToken
verifyToken(
token,opts?):Promise<VerifyTokenResult>
Defined in: plugins/holocron-plugin-axiom/src/verify-token.ts:34
Checks an Axiom token by fetching the current user; the success subject is user @ followed by the email, name or id,
the failure carries the error message. An API token cannot read the user (403), so then it asks for a dataset: the one
the token is meant to read (dataset), else one that does not exist. A 200 or a 404 means the token is accepted and
may read datasets, and the subject says API token; a 403 on the dataset it is meant to read still fails.
Parameters
Section titled “Parameters”string
VerifyTokenOptions = {}
Returns
Section titled “Returns”Promise<VerifyTokenResult>