From b8e6bb0afa60bdb5426c39ec6f9d88c2b3be0576 Mon Sep 17 00:00:00 2001 From: KynixInHK Date: Tue, 9 Jul 2024 16:09:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=86redis=E9=85=8D?= =?UTF-8?q?=E7=BD=AEstruct?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- am_jwt/jwt.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/am_jwt/jwt.go b/am_jwt/jwt.go index 924a1a1..8f61707 100644 --- a/am_jwt/jwt.go +++ b/am_jwt/jwt.go @@ -71,6 +71,12 @@ type TokenClaims struct { jwt.StandardClaims // standard claims,无需用户设定 } +// token config +type TokenConfig struct { + Issuer string `json:"issuer"` + Secret string `json:"secret"` +} + /* * PRIVATE * 查验redis储存情况