create_access_token
Generate a new access token for a client using specified parameters like provider ID, client ID, and expiration time. Essential for authenticating and managing access on the UseGrant MCP Server.
Instructions
Create a new access token for a client
Input Schema
Name | Required | Description | Default |
---|---|---|---|
audienceAsArray | No | Whether to use an array of audiences | |
clientId | Yes | The ID of the client | |
expiresIn | No | The number of seconds the token will be valid for | |
forceDefaultDomain | No | Whether to force the default domain | |
providerId | Yes | The ID of the provider | |
useJwtType | No | Whether to use at+jwt token type in the header |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"audienceAsArray": {
"description": "Whether to use an array of audiences",
"type": "boolean"
},
"clientId": {
"description": "The ID of the client",
"minLength": 1,
"type": "string"
},
"expiresIn": {
"description": "The number of seconds the token will be valid for",
"maximum": 172800000,
"type": "number"
},
"forceDefaultDomain": {
"description": "Whether to force the default domain",
"type": "boolean"
},
"providerId": {
"description": "The ID of the provider",
"minLength": 1,
"type": "string"
},
"useJwtType": {
"description": "Whether to use at+jwt token type in the header",
"type": "boolean"
}
},
"required": [
"providerId",
"clientId"
],
"type": "object"
}