Skip to content
GitHub

Token Configuration

Token configuration defines how Guardian generates and manages JWT tokens (access tokens, refresh tokens, and ID tokens) for authenticated users.

Table name: token_config

FieldTypeDescription
tenant_idCHAR(10)Tenant identifier (Primary Key)
algorithmVARCHAR(10)Token signing algorithm
issuerVARCHAR(256)Token issuer identifier
rsa_keysJSONRSA key pair in JSON format, list of objects where each object has keys
access_token_expiryINTAccess token JWT expiration time in seconds
refresh_token_expiryINTRefresh token expiration time in seconds
id_token_expiryINTID token JWT expiration time in seconds
id_token_claimsJSONClaims (key-values) to include in the ID Token payload (must be part of get user response)
cookie_domainVARCHAR(256)Domain for setting cookies
cookie_pathVARCHAR(256)Path for setting cookies
cookie_secureBOOLEANWhether cookies should be secure (HTTPS only)
cookie_http_onlyBOOLEANWhether cookies should be HTTP-only (not accessible via JavaScript)
cookie_same_siteVARCHAR(10)SameSite attribute for cookies (LAX, STRICT, NONE)