summaryrefslogtreecommitdiff
path: root/internal/handler/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handler/auth.go')
-rw-r--r--internal/handler/auth.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/internal/handler/auth.go b/internal/handler/auth.go
deleted file mode 100644
index c66eeb7..0000000
--- a/internal/handler/auth.go
+++ /dev/null
@@ -1,15 +0,0 @@
-package handler
-
-import (
- "fmt"
-
- "github.com/go-chi/jwtauth/v5"
-)
-
-var tokenAuth *jwtauth.JWTAuth
-
-func init() {
- tokenAuth = jwtauth.New("HS256", []byte("secret"), nil)
- _, tokenString, _ := tokenAuth.Encode(map[string]interface{}{"user_id": 123})
- fmt.Printf("DEBUG: a sample jwt is %s\n\n", tokenString)
-}