JWT (JSON Web Token) library for Elixir.


Keywords
jwt, elixir, joken
License
Apache-2.0

Documentation

Joken

Build Module Version Hex Docs Total Download License Last Updated

A JSON Web Token (JWT) Library.

Please, do read our comprehensive documentation and guides:

Usage

Add :joken to your list of dependencies in mix.exs:

def deps do
  # .. other deps
  {:joken, "~> 2.0"},
  # Recommended JSON library
  {:jason, "~> 1.1"}
end

All set! (don't forget to take a look at our comprehensive documentation and guides!)

Benchmarking

Just run the benchmark script based on the supported algorithm:

mix run benchmarks/hs_benchmark.exs
mix run benchmarks/jose_hs_benchmark.exs
mix run benchmarks/pem_rs_benchmark.exs
mix run benchmarks/rs_benchmark.exs

License

Copyright (c) 2014 Bryan Joseph

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Disclaimer

This library would not be possible without the work of @potatosalad (Andrew Bennet). Specifically his library erlang-jose.