package util import ( "context" "gitea.local/admin/hspguard/internal/types" ) func GetRequestUserId(ctx context.Context) (string, bool) { userId, ok := ctx.Value(types.UserIdKey).(string) return userId, ok } func GetRequestJTI(ctx context.Context) (string, bool) { jti, ok := ctx.Value(types.JTIKey).(string) return jti, ok }