Capacitor Plugin for Naver Login
npm install @team-lepisode/capacitor-naver-login
npx cap sync
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',
},
},
};
login() => Promise<NaverLoginResponse>
Returns: Promise<NaverLoginResponse>
logout() => Promise<void>
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) |