From c68d801ee44c2c60d373792e644fb491cd2591f5 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sat, 20 Jul 2019 07:34:33 +0300 Subject: [PATCH] fmt --- Request-authentication.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Request-authentication.md b/Request-authentication.md index add07c2..c7f6cff 100644 --- a/Request-authentication.md +++ b/Request-authentication.md @@ -27,15 +27,15 @@ import ( ) func getTokenHandler(ctx iris.Context) { - token := jwt.NewTokenWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{ - "foo": "bar", - }) + token := jwt.NewTokenWithClaims(jwt.SigningMethodHS256, jwt.MapClaims{ + "foo": "bar", + }) - // Sign and get the complete encoded token as a string using the secret - tokenString, _ := token.SignedString([]byte("My Secret")) + // Sign and get the complete encoded token as a string using the secret + tokenString, _ := token.SignedString([]byte("My Secret")) - ctx.HTML(`Token: ` + tokenString + `

-/secured?token=` + tokenString + ``) + ctx.HTML(`Token: ` + tokenString + `

+ /secured?token=` + tokenString + ``) } func myAuthenticatedHandler(ctx iris.Context) {