package com.devjob.user.dto;

import com.devjob.user.domain.Role;

public record LoginResponse(
        String accessToken,
        String tokenType,
        Long memberId,
        String email,
        Role role
) {
    public static LoginResponse of(String accessToken, Long memberId, String email, Role role) {
        return new LoginResponse(accessToken, "Bearer", memberId, email, role);
    }
}
