1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00

minor improvements

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-04-07 01:56:42 +03:00
parent dceb09d4ff
commit f17a325df6
6 changed files with 122 additions and 49 deletions

View File

@@ -13,7 +13,9 @@ type (
StandardClaims = jwt.Claims
// User is an alias of an empty interface, it's here to declare the typeof T,
// which can be any custom struct type.
User = interface{}
//
// Example can be found at: https://github.com/kataras/iris/tree/master/_examples/auth/auth/user.go.
User = any
)
const accessTokenContextKey = "iris.auth.context.access_token"