Skip to content

Commit

Permalink
Release 3.0.6
Browse files Browse the repository at this point in the history
`isKakaoTalkLoginUrl` 에서 SDK가 준비가 되지 않았으면 `false` return 하도록 수정
  • Loading branch information
hyochan committed Apr 7, 2021
1 parent 59de228 commit 742ba15
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelogs

- **[3.0.6]**
- `isKakaoTalkLoginUrl` 에서 SDK가 준비가 되지 않았으면 `false` return 하도록 수정.

- **[3.0.5]**
- `3.0.4`에서 잘못 수정된 부분 수정 (regression).

Expand Down
8 changes: 7 additions & 1 deletion ios/RNKakaoLogins/RNKakaoLogins.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ class RNKakaoLogins: NSObject {

@objc(isKakaoTalkLoginUrl:)
public static func isKakaoTalkLoginUrl(url:URL) -> Bool {
return AuthApi.isKakaoTalkLoginUrl(url)

let appKey = try? KakaoSDKCommon.shared.appKey();

if (appKey != nil) {
return AuthApi.isKakaoTalkLoginUrl(url)
}
return false
}

@objc(handleOpenUrl:)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-seoul/kakao-login",
"version": "3.0.5",
"version": "3.0.6",
"description": "React Native Module for Kakao Login",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 742ba15

Please sign in to comment.