7.0.0 • Published 1 year ago

@team-lepisode/capacitor-naver-login v7.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@team-lepisode/capacitor-naver-login

Capacitor Plugin for Naver Login

Install

npm install @team-lepisode/capacitor-naver-login
npx cap sync

Configuration

PropTypeDescription
clientIdstringClient ID
clientSecretstringClient Secret
clientNamestringClient Name
urlSchemestringURL Scheme (Only For iOS)
/// capacitor.config.ts
import type { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
  appId: 'com.test.app',
  appName: 'test',
  webDir: '../../dist/apps/client/browser',
  plugins: {
    // Set Plugin Configuration
    CapacitorNaverLogin: {
      clientId: 'YOUR_CLIENT_ID',
      clientSecret: 'YOUR_CLIENT_SECRET',
      clientName: 'YOUR_CLIENT_NAME',
      urlScheme: 'YOUR_URL_SCHEME',
    },
  },
};

API

login()

login() => Promise<NaverLoginResponse>

Returns: Promise<NaverLoginResponse>


logout()

logout() => Promise<void>

Interfaces

NaverLoginResponse

PropTypeDescription
accessTokenstringAccess Token
refreshTokenstringRefresh Token
tokenTypestringType of Token
expiresAtstring | nullExpiration Date of Access Token (Only available on Android)
statestring | nullState (Only available on Android)
7.0.0

1 year ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago