From 6cea06e46dbfbd7a7df3031c0199805f7aa47096 Mon Sep 17 00:00:00 2001 From: Julio Lopez Date: Fri, 12 Jun 2015 19:34:49 -0500 Subject: [PATCH] fixed results of decoded tokens in readme --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 890eb001..a1b7ffa7 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ decoded_token = JWT.decode token, nil, false # Array # [ -# {"test"=>"data"}, # payload -# {"typ"=>"JWT", "alg"=>"RS256"} # header +# {"data"=>"test"}, # payload +# {"typ"=>"JWT", "alg"=>"none"} # header # ] puts decoded_token ``` @@ -59,8 +59,8 @@ decoded_token = JWT.decode token, hmac_secret # Array # [ -# {"test"=>"data"}, # payload -# {"typ"=>"JWT", "alg"=>"RS256"} # header +# {"data"=>"test"}, # payload +# {"typ"=>"JWT", "alg"=>"HS256"} # header # ] puts decoded_token ``` @@ -84,7 +84,7 @@ decoded_token = JWT.decode token, rsa_public # Array # [ -# {"test"=>"data"}, # payload +# {"data"=>"test"}, # payload # {"typ"=>"JWT", "alg"=>"RS256"} # header # ] puts decoded_token