method

App.RevokePreviewToken

Revoke a preview capability owned by the exact authenticated identity.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
rawstringThe raw value.
identity*AuthIdentityThe identity value.

Returns

The declared result.

error

How it works

Missing and expired tokens are treated as already revoked.

Full signature

func (application *App) RevokePreviewToken( ctx context.Context, raw string, identity *AuthIdentity, ) error

Source core/preview.go:261

Related types

  • App

    A resolved application bound to operation services.

  • AuthIdentity

    An exact authenticated collection and actor document.