SandboxTokenProviderContext¶ class baseten.sandbox.SandboxTokenProviderContext(*, revoked_token=None)¶ Bases: object What a token provider is told about the token it is asked for. Parameters: revoked_token (str | None) revoked_token: str | None = None¶ A token the server just rejected as revoked. Set when the request is being sent again with a new token. Revocation can happen well before a token’s expiry, for example when any API key of the token’s user changes.