extractCredentialId

Extracts the credentialId claim from a JWT token.

Return

The credential ID if present, null otherwise

Parameters

token

The JWT token string

Throws

if the token format is invalid