@emuanalytics/capacitor-auth-plugin
v0.0.5
Published
Description
Downloads
15
Readme
capacitor-auth-plugin
Description
Install
npm install @emuanalytics/capacitor-auth-plugin
npx cap syncAPI
openAuthorizeURL(...)openAuthorizeURLWithWebView(...)storageGetItem(...)storageSetItem(...)storageDeleteItem(...)getDeviceInfo()randomBytes(...)sha256String(...)
openAuthorizeURL(...)
openAuthorizeURL(options: { url: string; callbackURL: string; prefersEphemeralWebBrowserSession: boolean; openInSameTab: boolean; }) => Promise<{ redirectURI: string; }>| Param | Type |
| ------------- | ---------------------------------------------------------------------------------------------------------------------- |
| options | { url: string; callbackURL: string; prefersEphemeralWebBrowserSession: boolean; openInSameTab: boolean; } |
Returns: Promise<{ redirectURI: string; }>
openAuthorizeURLWithWebView(...)
openAuthorizeURLWithWebView(options: { url: string; redirectURI: string; modalPresentationStyle?: string; navigationBarBackgroundColor?: string; navigationBarButtonTintColor?: string; actionBarBackgroundColor?: string; actionBarButtonTintColor?: string; iosIsInspectable?: boolean; }) => Promise<{ redirectURI: string; }>| Param | Type |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| options | { url: string; redirectURI: string; modalPresentationStyle?: string; navigationBarBackgroundColor?: string; navigationBarButtonTintColor?: string; actionBarBackgroundColor?: string; actionBarButtonTintColor?: string; iosIsInspectable?: boolean; } |
Returns: Promise<{ redirectURI: string; }>
storageGetItem(...)
storageGetItem(options: { key: string; }) => Promise<{ value: string | null; }>| Param | Type |
| ------------- | ----------------------------- |
| options | { key: string; } |
Returns: Promise<{ value: string | null; }>
storageSetItem(...)
storageSetItem(options: { key: string; value: string; }) => Promise<void>| Param | Type |
| ------------- | -------------------------------------------- |
| options | { key: string; value: string; } |
storageDeleteItem(...)
storageDeleteItem(options: { key: string; }) => Promise<void>| Param | Type |
| ------------- | ----------------------------- |
| options | { key: string; } |
getDeviceInfo()
getDeviceInfo() => Promise<{ deviceInfo: unknown; }>Returns: Promise<{ deviceInfo: unknown; }>
randomBytes(...)
randomBytes(options: { length: number; }) => Promise<{ bytes: number[]; }>| Param | Type |
| ------------- | -------------------------------- |
| options | { length: number; } |
Returns: Promise<{ bytes: number[]; }>
sha256String(...)
sha256String(options: { input: string; }) => Promise<{ bytes: number[]; }>| Param | Type |
| ------------- | ------------------------------- |
| options | { input: string; } |
Returns: Promise<{ bytes: number[]; }>
