Skip to content

verifyToken

verifyToken(token, opts?): Promise<VerifyTokenResult>

Defined in: plugins/holocron-plugin-posthog/src/verify-token.ts:12

Checks a PostHog personal API key by fetching the current user; the success subject is email @ organization slug, the failure carries the error message.

string

VerifyTokenOptions = {}

Promise<VerifyTokenResult>