From 0370ea2e24e709247186f85386d1a6cc3673235b Mon Sep 17 00:00:00 2001 From: "sehyun.kim" Date: Sat, 11 Jan 2025 18:50:31 +0900 Subject: [PATCH] =?UTF-8?q?OIDC=20=ED=86=A0=ED=81=B0=20=EC=B6=94=EA=B0=80,?= =?UTF-8?q?=20=EC=9D=BC=EB=B6=80=20interface=20export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/types.ts b/src/types.ts index 0b54e27..0af98e8 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,14 +1,16 @@ import { CSSProperties, ReactChild, ReactNode } from "react"; -interface KakaoError { +export interface KakaoError { error: string; error_description: string; } -interface LoginResponse { +export interface LoginResponse { /** 토큰 타입, bearer 로 고정 */ token_type: string; /** 사용자 액세스 토큰 값 */ access_token: string; + /** OIDC 토큰 값 */ + id_token?: string; /** 액세스 토큰 만료 시간(초) */ expires_in: string; /** 사용자 리프레시 토큰 값 */ @@ -71,7 +73,7 @@ interface KakaoAccount { ci: string; } -interface UserProfile { +export interface UserProfile { /** 회원번호 */ id: number; /** 카카오계정 정보 */