0.0.15 • Published 8 months ago

kinde-capacitor-plugin v0.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Kinde Capacitor Plugin

Capacitor plugin for Kinde Authentication

Install

npm install kinde-capacitor-plugin

iOS Configuration

  1. Add to your capacitor.config.json:
"plugins": {
  "kindeAuth": {
    "domain": "plantquest.kinde.com",
    "clientId": "example-client-id",
    "redirectUri": "pqjnjih://callback"
  }
}
  1. Add URL scheme to your iOS app's Info.plist:
<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>pqjnjih</string>
        </array>
    </dict>
</array>

Usage

typescript

import { KindeAuth } from 'kinde-capacitor-plugin';
// Login
await KindeAuth.login();
// Get user details
const { user, error } = await KindeAuth.getUserDetails();
// Check if user is authenticated
const { isAuthenticated } = await KindeAuth.isAuthenticated();
// Logout
await KindeAuth.logout();
0.0.15

8 months ago

0.0.10

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago