• Stars
    star
    770
  • Rank 59,000 (Top 2 %)
  • Language
    Elixir
  • License
    Apache License 2.0
  • Created about 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Elixir JWT library

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.5"},
  # Recommended JSON library
  {:jason, "~> 1.3"}
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.