Security

JSON Web Token (JWT)

Matches the structure of a JWT (Header.Payload.Signature)

/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/

Type in the box above to test if your input matches the regex pattern.

Test Cases

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
invalid.token
no_dots

Tags

#security #auth #token