SDK reference · Verifiers
Embed.CreateToken
Embed.CreateToken in go.provenanceauth.com/verify (Go), Verifiers. CreateToken calls POST /v1/embed/tokens: a session of up to 15 minutes for one widget and one object.
Signature
provenanceverify.Embed.CreateToken(ctx context.Context, p EmbedTokenParams) (EmbedToken, error)Parameters
ctxcontext.ContextRequiredpEmbedTokenParamsRequired
Returns
(EmbedToken, error)
HTTP operation
Runs locally, with no request to the API.