package com.maternalmall.config;

import com.maternalmall.domain.User;

public class AuthContext {
    public static final String CURRENT_USER = "CURRENT_USER";

    public static User getUser(jakarta.servlet.http.HttpServletRequest request) {
        return (User) request.getAttribute(CURRENT_USER);
    }
}
