VerifyUserToken verifies the X-Langsmith-User-Token header of a request made.
func (
v *SandboxTokenVerifier) VerifyUserToken(ctx context.Context,
token string,
opts SandboxUserTokenOptions) (*SandboxUser,
error
)VerifyUserToken verifies the X-Langsmith-User-Token header of a request made through a LangSmith-login service URL. The token may use any JOSE asymmetric algorithm (RS*, PS*, ES*, EdDSA), chosen by the JWKS key its kid names.
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
token* | string | |
opts* | SandboxUserTokenOptions |