// MustUID get the user ID from current request token, panic if unauthorized
MustUID get the user ID from current request token, panic if unauthorized
// MustUID get the user ID from current request token panic if unauthorized
func MustUID(c *gin.Context) int {
	claims, ok := Check(c)
	if !ok {
		panic("unauthorized")
	}
	return cast.ToInt(claims.Subject)
}
func MustUID ( c * gin . Context ) int { claims , ok := Check ( c ) if ! ok { panic ( " " ) } return cast . ToInt ( claims . Subject ) }
MustUID get the user ID from current request token, panic if unauthorized
MustUID get the user ID from current request token panic if unauthorized