alg
Three base64url strings joined by dots — and the browser can retype any of them. What stops a forgery is the check on the right, not the encoding.
1 header 2 payload 3 signature
role
sub