Skip to content

joken-elixir/joken

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.