@team-lepisode/capacitor-naver-login
v7.0.0
Published
Capacitor Plugin for Naver Login
Readme
@team-lepisode/capacitor-naver-login
Capacitor Plugin for Naver Login
Install
npm install @team-lepisode/capacitor-naver-login
npx cap syncConfiguration
| Prop | Type | Description |
| -------------- | -------- | ------------------------- |
| clientId | string | Client ID |
| clientSecret | string | Client Secret |
| clientName | string | Client Name |
| urlScheme | string | URL 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
| Prop | Type | Description |
| ------------------ | --------------------------- | ----------------------------------------------------------- |
| accessToken | string | Access Token |
| refreshToken | string | Refresh Token |
| tokenType | string | Type of Token |
| expiresAt | string | null | Expiration Date of Access Token (Only available on Android) |
| state | string | null | State (Only available on Android) |
