npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@altariz/rn-kakao-login

v1.1.2

Published

Kakao Login v2 for RN

Downloads

8

Readme

react-native-kakao-login 에서 Fork 후 변경된 프로젝트.

이전 프로젝트 제작자분에게 감사한 마음을 가집시다! 감사합니다!

하이브리드 앱으로 개발한 경우 내부 웹브라우저가 멀티로 작동하지 않아 카카오 아이디로 로그인 지원않는다. 어찌 방법을 찾아보면 되겠지만, 각자도생하고자 해도 카카오톡 앱이 설치되어있는지 확인하는게 우선인데 해당 메서드가 인터페이스에 노출되지 않아 해당 인터페이스 추가
(카카오SDK 변경에 따라 AuthAPI -> UserAPI 로 변경 코드도 적용)

[추가된 메서드]


    KakaoLogin.isKakaoTalkLoginAvailable().then((res) => {
    
      console.log("KakaoLogin.isKakaoTalkLoginAvailable():"+ JSON.stringify(res))
      if(res.result) {
      }
    }

응답


{result: true|false}

Getting started

Mostly automatic installation (RN >= 0.60)

$ npm install @altariz/rn-kakao-login --save
$ cd ios && pod install && cd ..

How to use

import KakaoLogin from '@altariz/rn-kakao-login';

// 카카오 로그인 시 처리부문
const loginOutput = await KakaoLogin.login();

|변수명 |설명 | |-----------|------------------| |accessToken|카카오의 accessToken| |refreshToken|카카오의 refreshToken| |accessTokenExpiresAt|카카오의 accessToken만료일| |refreshTokenExpiresAt|카카오의 refreshToken만료일| |scopes|사용권한|

import KakaoLogin from '@altariz/rn-kakao-login';

// 카카오 로그아웃시 처리
await KakaoLogin.logout();


// 카카오 액세스 토큰 가져오는 명령, 로그인 시 자동으로 로그아웃 후 처리됨에 따라
// 별도로 값만 가져올 경우 사용.
// 로직 변경으로 인해 해당 현재 토큰의 대한 정보(아이디, 만료일)만 가져옵니다. 
const accessToken = await KakaoLogins.getAccessToken();


// 카카오 회원정보 가져오기
const profile = await KakaoLogins.getProfile();

|변수명|설명 | |--|------------------| |id|카카오계정 고유키| |connected_at|연결한 일자| |kakao_account|회원정보| |properties|기타자료|