Openmaize v0.11.0 Openmaize.Token.Verify

Module to verify JSON Web Tokens.

Summary

Functions

Decode the JWT and check that it is valid

Functions

verify_token(token)

Decode the JWT and check that it is valid.

As well as checking that the token is a valid JWT, this function also checks that it has a kid value in the header, nbf and exp values in the body, and that it uses a supported algorithm, either HMAC-sha512 or HMAC-sha256.