Okta plugin
npm install capacitor-okta
npx cap sync
signIn(...)
signOut()
register(...)
recoveryPassword(...)
enableBiometric()
disableBiometric()
resetBiometric()
getBiometricStatus()
configure(...)
addListener('authState', ...)
- Interfaces
- Type Aliases
signIn(options?: { params?: Record<string, string> | undefined; signInInBrowser?: boolean | undefined; } | undefined) => Promise<void>
Param | Type |
---|---|
options |
{ params?: Record<string, string>; signInInBrowser?: boolean; } |
signOut() => Promise<void>
register(params?: Record<string, string> | undefined) => Promise<void>
Param | Type |
---|---|
params |
Record<string, string> |
recoveryPassword(params?: Record<string, string> | undefined) => Promise<void>
Param | Type |
---|---|
params |
Record<string, string> |
enableBiometric() => Promise<BiometricState>
Returns: Promise<BiometricState>
disableBiometric() => Promise<BiometricState>
Returns: Promise<BiometricState>
resetBiometric() => Promise<BiometricState>
Returns: Promise<BiometricState>
getBiometricStatus() => Promise<BiometricState>
Returns: Promise<BiometricState>
configure(config: OktaConfig) => Promise<void>
Param | Type |
---|---|
config |
OktaConfig |
addListener(eventName: 'authState', listenerFunc: (data: AuthState) => void) => PluginListenerHandle
Param | Type |
---|---|
eventName |
'authState' |
listenerFunc |
(data: AuthState) => void |
Returns: PluginListenerHandle
Prop | Type |
---|---|
isBiometricSupported |
boolean |
isBiometricEnabled |
boolean |
Prop | Type |
---|---|
clientId |
string |
uri |
string |
scopes |
string |
endSessionUri |
string |
redirectUri |
string |
Prop | Type |
---|---|
remove |
() => Promise<void> |
Prop | Type |
---|---|
accessToken |
string |
Construct a type with a set of properties K of type T
{
[P in K]: T;
}
- 1.1.0 Capacitor 5
- 1.0.0 ... 1.0.9 Capacitor 4