Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OIDC 토큰 추가, 일부 interface export #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -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;
/** 사용자 리프레시 토큰 값 */
Expand Down Expand Up @@ -71,7 +73,7 @@ interface KakaoAccount {
ci: string;
}

interface UserProfile {
export interface UserProfile {
/** 회원번호 */
id: number;
/** 카카오계정 정보 */
Expand Down