verifyUserToken(token: string, options: VerifyUserTokenOptions): Promise<SandboxUser>| Name | Type | Description |
|---|---|---|
token* | string | |
options* | VerifyUserTokenOptions |
Verify the X-Langsmith-User-Token header of a service URL request.
LangSmith sets this header only for service URLs that use LangSmith login.
Code that knows it is running in a sandbox can instead trust the unsigned
X-Langsmith-User-Id and X-Langsmith-User-Email headers, which the
sandbox runtime strips from inbound requests and sets itself; verify this
token when that is not guaranteed.