
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@kweiza/react-native-kakao
Advanced tools
KakaoSDK for react native
yarn add @kweiza/react-native-kakao
npx pod-install
or
cd ios && pod install
iOS Deployment Target을 11.0로 변경
Swift Bridge 생성
info.plist에 아래 부분 추가
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>kakao{카카오 네이티브앱 키}</string>
</array>
</dict>
</array>
...
<key>KAKAO_APP_KEY</key>
<string>{카카오 네이티브앱 키}</string>
...
<key>LSApplicationQueriesSchemes</key>
<array>
<string>kakaokompassauth</string>
<string>storykompassauth</string>
<string>kakaolink</string>
</array>
...
buildscript {
ext {
...
kotlinVersion = '1.3.41'
...
}
...
dependencies {
...
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
...
allprojects {
repositories {
...
maven { url 'https://devrepo.kakao.com/nexus/content/groups/public/' }
}
}
<manifest
...
>
...
<application
android:allowBackup="true"
tools:replace="android:allowBackup" // android:allowBackup="true" 추가 시 에러가 난다면 이 라인을 추가
...
>
...
<activity android:name="com.kakao.sdk.auth.AuthCodeHandlerActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Redirect URI: "kakao{NATIVE_APP_KEY}://oauth“ -->
<data android:host="oauth"
android:scheme="kakao{카카오 네이티브앱 키}" />
</intent-filter>
</activity>
</application>
</manifest>
...
<resources>
...
<string name="kakao_app_key">{카카오 네이티브앱 키}</string>
</resources>
자세한 예제는 example/src/LoginScreen.tsx 참고
import { KakaoLogin } from 'react-native-kakao';
try {
const r = await KakaoLogin.login();
console.log(r);
} catch (e) {
console.log(e);
}
// ...
// 카카오톡 설치 여부
// response
// boolean
isKakaoTalkLoginAvailable()
// 카카오톡 앱 로그인
// response
// {
// accessToken: string;
// expiredAt: Date;
// refreshToken: string;
// refreshTokenExpiresAt: Date;
// scopes: string[];
// }
loginWithKakaoTalk()
// 카카오계정 로그인 (웹브라우저)
// response
// {
// accessToken: string;
// expiredAt: Date;
// refreshToken: string;
// refreshTokenExpiresAt: Date;
// scopes: string[];
// }
loginWithKakaoAccount()
// 카카오 로그인 - 카톡앱 로그인, 앱 없으면 웹으로 연결
// response
// {
// accessToken: string;
// expiredAt: Date;
// refreshToken: string;
// refreshTokenExpiresAt: Date;
// scopes: string[];
// }
login()
// 로그아웃
logout()
// 카카오 계정 연결 해제
unlink()
// 토큰 정보
// response
// {
// appId: number;
// id?: number;
// expiresIn: number;
// }
accessTokenInfo()
// 로그인 유저 정보
// response
// {
// id?: number;
// properties?: TKakaoUserProperties;
// kakaoAccount?: TKakaoUserKakaoAccount;
// groupUserToken?: string;
// connectedAt?: Date;
// synchedAt?: Date;
// hasSignedUp?: boolean;
// }
me()
자세한 예제는 example/src/LinkScreen.tsx 참고
import { KakaoLink } from 'react-native-kakao';
try {
await KakaoLogin.feedLink(template);
} catch (e) {
console.log(e);
}
// ...
// 참고 https://developers.kakao.com/docs/latest/ko/message/message-template
// 공통 resposne
// {
// argumentMsg: {[key: string]: string};
// warningMsg: {[key: string]: string};
// }
feedLink(template: TKakaoMessageTemplateFeed)
listLink(template: TKakaoMessageTemplateList)
locationLink(template: TKakaoMessageTemplateLocation)
commerceLink(template: TKakaoMessageTemplateCommerce)
textLink(template: TKakaoMessageTemplateText)
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
KakaoSDK for react native
We found that @kweiza/react-native-kakao demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.