diff options
author | Scott Arciszewski <scott@arciszewski.me> | 2015-04-01 02:47:28 -0400 |
---|---|---|
committer | Scott Arciszewski <scott@arciszewski.me> | 2015-04-01 02:47:28 -0400 |
commit | 62345abe5eb33e167841485c596f3e7337812127 (patch) | |
tree | 0c181da6368b6288714db634116c16aa0c4ddf88 /README.md | |
parent | ec013c9b275afc1fa1bedcec54b22fa9fc3546bb (diff) | |
download | php-jwt-62345abe5eb33e167841485c596f3e7337812127.zip php-jwt-62345abe5eb33e167841485c596f3e7337812127.tar.gz php-jwt-62345abe5eb33e167841485c596f3e7337812127.tar.bz2 |
Add note to readme
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -27,6 +27,13 @@ $token = array( "nbf" => 1357000000 ); +/* + IMPORTANT + HS256 is actually the default, but you should set it explicitly + if you intend to use another strategy (e.g. RS256): +*/ +JWT::setOnlyMethodAllowed('HS256'); + $jwt = JWT::encode($token, $key); $decoded = JWT::decode($jwt, $key); |