pub async fn vend_jwt_with_id(
configuration: &Configuration,
jwt_vend_request: Option<JwtVendRequest>,
) -> Result<JwtVendResponse, Error<VendJwtWithIdError>>
Expand description
It’s a JWT vending machine! Issue a new access token (JWT) with the provided claims in the request. This JWT is not scoped to a tenant or user, it is a free form token that will contain what claims you provide.
The iat, exp and jti claims will be added by FusionAuth, all other claims must be provided by the caller. If a TTL is not provided in the request, the TTL will be retrieved from the default Tenant or the Tenant specified on the request either by way of the X-FusionAuth-TenantId request header, or a tenant scoped API key.