From 7c811247ecf143e08c576986a884bedadc57dd66 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期五, 05 六月 2020 18:29:41 +0800
Subject: [PATCH] add refresh token to resp

---
 middlewares/auth/auth.go |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/middlewares/auth/auth.go b/middlewares/auth/auth.go
index d2e365f..d0255fc 100644
--- a/middlewares/auth/auth.go
+++ b/middlewares/auth/auth.go
@@ -16,8 +16,9 @@
 type Auth interface {
 	Check(c *gin.Context)bool
 	User(c *gin.Context)map[string]interface{}
-	Login(http *http.Request,w http.ResponseWriter,user map[string]interface{})interface{}
+	Login(http *http.Request,w http.ResponseWriter,user map[string]interface{}) (bool, string, string)
 	Logout(http *http.Request,w http.ResponseWriter) bool
+	RefreshToken(tokenStr string) (bool, string, string)
 }
 
 func GenerateAuthDriver() *Auth {

--
Gitblit v1.8.0