GetUserID returns the current authorized client's user id extracted from claims.
(ctx iris.Context)
| 125 | |
| 126 | // GetUserID returns the current authorized client's user id extracted from claims. |
| 127 | func GetUserID(ctx iris.Context) string { |
| 128 | return GetClaims(ctx).UserID |
| 129 | } |
| 130 | |
| 131 | // IsAdmin reports whether the current client has admin access. |
| 132 | func IsAdmin(ctx iris.Context) bool { |
no test coverage detected
searching dependent graphs…