Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@panora/frontend-sdk
Advanced tools
It is a React component aimed to be used in any of your pages so end-users can connect their 3rd parties in 1-click!
It is a React component aimed to be used in any of your pages so end-users can connect their 3rd parties in 1-click!
npm i @panora/frontend-sdk
or
pnpm i @panora/frontend-sdk
or
yarn add @panora/frontend-sdk
import { ConnectorCategory } from '@panora/shared'
import Panora from '@panora/frontend-sdk'
const panora = new Panora({ apiKey: 'YOUR_PRIVATE_API_KEY' });
// kickstart the connection (OAuth, ApiKey, Basic)
panora.connect({
providerName: "hubspot",
vertical: ConnectorCategory.Crm,
linkedUserId: "4c6ca51b-7b23-4e3a-9309-24d2d331a04d",
})
The Panora SDK must be instantiated with this type:
interface PanoraConfig {
apiKey: string;
overrideApiUrl: string;
// Optional (only if you are in selfhost mode and want to use localhost:3000), by default: api.panora.dev
}
The .connect() function takes this type:
interface ConnectOptions {
providerName: string;
vertical: ConnectorCategory; // Must be imported from @panora/shared
linkedUserId: string; // You can copy it from your Panora dahsbord under /configuration tab
credentials?: Credentials; // Optional if you try to use OAuth
options?: {
onSuccess?: () => void;
onError?: (error: Error) => void;
overrideReturnUrl?: string;
}
}
By default, for OAuth we use Panora managed OAuth apps but if we dont have one registered OR you want to use your own, you must register that under /configuration tab from the webapp and it will automatically use these custom credentials !
interface Credentials {
username?: string; // Used for Basic Auth
password?: string; // Used for Basic Auth
apiKey?: string; // Used for Api Key Auth
}
For Basic Auth some providers may only ask for username or password.
In this case just specify either password or username depending on the 3rd party reference.
FAQs
It is a React component aimed to be used in any of your pages so end-users can connect their 3rd parties in 1-click!
The npm package @panora/frontend-sdk receives a total of 4 weekly downloads. As such, @panora/frontend-sdk popularity was classified as not popular.
We found that @panora/frontend-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.