Skip to content

Commit

Permalink
Removed reference to Log
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Rader committed May 15, 2015
1 parent 1a11ba6 commit 6dd9e05
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Console.WriteLine(token);
```

Output will be:

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJjbGFpbTEiOjAsImNsYWltMiI6ImNsYWltMi12YWx1ZSJ9.8pwBI_HtXqI3UgQHQ_rDRnSQRxFL1SR8fbQoS-5kM5s

### Verifying and Decoding Tokens
Expand Down Expand Up @@ -74,7 +73,8 @@ string jsonPayload = JWT.JsonWebToken.Decode(token, secretKey); // JWT.Signature
### Configure JSON Serialization

By default JSON Serialization is done by System.Web.Script.Serialization.JavaScriptSerializer. To configure a different one first implement the IJsonSerializer interface.
```cs

```csharp
public class CustomJsonSerializer : IJsonSerializer
{
public string Serialize(object obj)
Expand All @@ -93,12 +93,3 @@ Next configure this serializer as the JsonSerializer.
```cs
JsonWebToken.JsonSerializer = new CustomJsonSerializer();
```

### Configure Logging

To enable logging of the encoded / decoded JSON, set Log using your favorite logger.

```cs
JsonWebToken.Log = msg => Logger.Debug(msg);
```

0 comments on commit 6dd9e05

Please sign in to comment.