@package-kr/react-native-kakao-signin 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -234,10 +234,14 @@ const terms = await serviceTerms();
234
234
  | `isEmailVerified` | `boolean \| null` | 이메일 인증 여부 |
235
235
  | `isKorean` | `boolean \| null` | 한국인 여부 |
236
236
  | `isDefaultImage` | `boolean \| null` | 기본 프로필 이미지 여부 |
237
+ | `isLeapMonth` | `boolean \| null` | 생일 윤달 여부 (Android only) |
237
238
  | `connectedAt` | `string \| null` | 서비스 연결 시각 |
238
239
  | `synchedAt` | `string \| null` | 카카오싱크 로그인 시각 |
239
- | `ci` | `string \| null` | 연계정보 |
240
- | `ciAuthenticatedAt` | `string \| null` | CI 발급 시각 |
240
+ | `ci` | `string \| null` | 연계정보 (iOS only) |
241
+ | `ciAuthenticatedAt` | `string \| null` | CI 발급 시각 (iOS only) |
242
+ | `legalName` | `string \| null` | 법정 이름 |
243
+ | `legalBirthDate` | `string \| null` | 법정 생년월일 |
244
+ | `legalGender` | `string \| null` | 법정 성별 |
241
245
  | `emailNeedsAgreement` | `boolean \| null` | 이메일 제공 동의 필요 여부 |
242
246
  | `profileNeedsAgreement` | `boolean \| null` | 프로필 제공 동의 필요 여부 |
243
247
  | `phoneNumberNeedsAgreement` | `boolean \| null` | 전화번호 제공 동의 필요 여부 |
@@ -249,7 +253,10 @@ const terms = await serviceTerms();
249
253
  | `profileNicknameNeedsAgreement` | `boolean \| null` | 닉네임 제공 동의 필요 여부 |
250
254
  | `profileImageNeedsAgreement` | `boolean \| null` | 프로필 이미지 제공 동의 필요 여부 |
251
255
  | `nameNeedsAgreement` | `boolean \| null` | 이름 제공 동의 필요 여부 |
252
- | `ciNeedsAgreement` | `boolean \| null` | CI 제공 동의 필요 여부 |
256
+ | `ciNeedsAgreement` | `boolean \| null` | CI 제공 동의 필요 여부 (iOS only) |
257
+ | `legalNameNeedsAgreement` | `boolean \| null` | 법정 이름 제공 동의 필요 여부 |
258
+ | `legalBirthDateNeedsAgreement` | `boolean \| null` | 법정 생년월일 제공 동의 필요 여부 |
259
+ | `legalGenderNeedsAgreement` | `boolean \| null` | 법정 성별 제공 동의 필요 여부 |
253
260
 
254
261
  ### `KakaoAccessTokenInfo`
255
262
 
@@ -160,10 +160,12 @@ class RNKakaoSigninModule(
160
160
  account?.isEmailVerified?.let { profile.putBoolean("isEmailVerified", it) }
161
161
  account?.isKorean?.let { profile.putBoolean("isKorean", it) }
162
162
  detail?.isDefaultImage?.let { profile.putBoolean("isDefaultImage", it) }
163
+ account?.isLeapMonth?.let { profile.putBoolean("isLeapMonth", it) }
163
164
  profile.putString("connectedAt", formatDate(user.connectedAt))
164
165
  profile.putString("synchedAt", formatDate(user.synchedAt))
165
- account?.ci?.let { profile.putString("ci", it) }
166
- profile.putString("ciAuthenticatedAt", formatDate(account?.ciAuthenticatedAt))
166
+ profile.putString("legalName", account?.legalName)
167
+ profile.putString("legalBirthDate", account?.legalBirthDate)
168
+ profile.putString("legalGender", account?.legalGender?.toString())
167
169
  account?.ageRangeNeedsAgreement?.let { profile.putBoolean("ageRangeNeedsAgreement", it) }
168
170
  account?.birthdayNeedsAgreement?.let { profile.putBoolean("birthdayNeedsAgreement", it) }
169
171
  account?.birthyearNeedsAgreement?.let { profile.putBoolean("birthyearNeedsAgreement", it) }
@@ -175,7 +177,9 @@ class RNKakaoSigninModule(
175
177
  account?.profileNicknameNeedsAgreement?.let { profile.putBoolean("profileNicknameNeedsAgreement", it) }
176
178
  account?.profileImageNeedsAgreement?.let { profile.putBoolean("profileImageNeedsAgreement", it) }
177
179
  account?.nameNeedsAgreement?.let { profile.putBoolean("nameNeedsAgreement", it) }
178
- account?.ciNeedsAgreement?.let { profile.putBoolean("ciNeedsAgreement", it) }
180
+ account?.legalNameNeedsAgreement?.let { profile.putBoolean("legalNameNeedsAgreement", it) }
181
+ account?.legalBirthDateNeedsAgreement?.let { profile.putBoolean("legalBirthDateNeedsAgreement", it) }
182
+ account?.legalGenderNeedsAgreement?.let { profile.putBoolean("legalGenderNeedsAgreement", it) }
179
183
  promise.resolve(profile)
180
184
  }
181
185
  }
@@ -119,6 +119,9 @@ class RNKakaoSignin: NSObject {
119
119
  "synchedAt": user?.synchedAt as Any,
120
120
  "ci": account?.ci as Any,
121
121
  "ciAuthenticatedAt": account?.ciAuthenticatedAt as Any,
122
+ "legalName": account?.legalName as Any,
123
+ "legalBirthDate": account?.legalBirthDate as Any,
124
+ "legalGender": account?.legalGender?.rawValue as Any,
122
125
  "ageRangeNeedsAgreement": account?.ageRangeNeedsAgreement as Any,
123
126
  "birthdayNeedsAgreement": account?.birthdayNeedsAgreement as Any,
124
127
  "birthyearNeedsAgreement": account?.birthyearNeedsAgreement as Any,
@@ -131,6 +134,9 @@ class RNKakaoSignin: NSObject {
131
134
  "profileImageNeedsAgreement": account?.profileImageNeedsAgreement as Any,
132
135
  "nameNeedsAgreement": account?.nameNeedsAgreement as Any,
133
136
  "ciNeedsAgreement": account?.ciNeedsAgreement as Any,
137
+ "legalNameNeedsAgreement": account?.legalNameNeedsAgreement as Any,
138
+ "legalBirthDateNeedsAgreement": account?.legalBirthDateNeedsAgreement as Any,
139
+ "legalGenderNeedsAgreement": account?.legalGenderNeedsAgreement as Any,
134
140
  ]
135
141
  resolve(result)
136
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@package-kr/react-native-kakao-signin",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "React Native Kakao Login",
5
5
  "main": "src/index",
6
6
  "types": "src/index.ts",
@@ -63,10 +63,14 @@ export type KakaoProfile = {
63
63
  isEmailVerified: boolean | null;
64
64
  isKorean: boolean | null;
65
65
  isDefaultImage: boolean | null;
66
+ isLeapMonth: boolean | null;
66
67
  connectedAt: string | null;
67
68
  synchedAt: string | null;
68
69
  ci: string | null;
69
70
  ciAuthenticatedAt: string | null;
71
+ legalName: string | null;
72
+ legalBirthDate: string | null;
73
+ legalGender: string | null;
70
74
  emailNeedsAgreement: boolean | null;
71
75
  profileNeedsAgreement: boolean | null;
72
76
  phoneNumberNeedsAgreement: boolean | null;
@@ -79,4 +83,7 @@ export type KakaoProfile = {
79
83
  profileImageNeedsAgreement: boolean | null;
80
84
  nameNeedsAgreement: boolean | null;
81
85
  ciNeedsAgreement: boolean | null;
86
+ legalNameNeedsAgreement: boolean | null;
87
+ legalBirthDateNeedsAgreement: boolean | null;
88
+ legalGenderNeedsAgreement: boolean | null;
82
89
  };