diff --git a/session/global.go b/session/global.go index 321e961..93e1550 100644 --- a/session/global.go +++ b/session/global.go @@ -42,6 +42,10 @@ func SetDefaultProvider(sp Provider) { defaultProvider = sp } +func DefaultProvider() Provider { + return defaultProvider +} + func CheckLoginMiddleware() gin.HandlerFunc { return (&MiddlewareBuilder{sp: defaultProvider}).Build() }