_examples/custom_token/readme.md
raw| 1 | Example demonstrates a possibility to use your own custom token parsing logic for client-side refresh workflow. |
| 2 | |
| 3 | In this example we expect a string with user ID `I am <ID>` from client as token to continue working with it. **This is just an example, it's an absolutely insecure approach, never do this in production!** |
| 4 | |
| 5 | To start an example run the following command from example directory: |
| 6 | |
| 7 | ``` |
| 8 | go run main.go |
| 9 | ``` |
| 10 | |
| 11 | Then go to http://localhost:8000 to see it in action. |