package com.devjob.dto;

import com.devjob.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);
    }
}
