How to use the @react-native-seoul/kakao-login.logout function in @react-native-seoul/kakao-login

To help you get started, we’ve selected a few @react-native-seoul/kakao-login examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-native-seoul / react-native-kakao-login / KakaoLoginExample / App.js View on Github external
const kakaoLogout = () => {
    logCallback('Logout Start', setLogoutLoading(true));

    KakaoLogins.logout()
      .then(result => {
        setToken(TOKEN_EMPTY);
        setProfile(PROFILE_EMPTY);
        logCallback(`Logout Finished:${result}`, setLogoutLoading(false));
      })
      .catch(err => {
        logCallback(
          `Logout Failed:${err.code} ${err.message}`,
          setLogoutLoading(false),
        );
      });
  };

@react-native-seoul/kakao-login

React Native Module for Kakao Login

MIT
Latest version published 7 months ago

Package Health Score

69 / 100
Full package analysis