Verifies a JWT locally using the issuer's public keys (JWKS) and validates standard OIDC claims.
validate_token(
token,
issuer,
client_id,
allowed_emails = NULL,
allowed_domains = NULL,
custom_validator = NULL
)List with valid (logical), email (character or NULL),
error (character or NULL).
Character string, the JWT.
Expected issuer URL.
Expected audience (client ID).
Character vector of allowed email addresses (optional).
Character vector of allowed email domains (optional).
Function(claims) returning TRUE/FALSE (optional).