Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@psychicdev/link
Advanced tools
`@psychicdev/link` is a React library that provides a hook for easy authentication with popular SaaS applications such as Notion, Google Drive, and more. Find us at https://psychic.dev
@psychicdev/link
is a React library that provides a hook for easy authentication with popular SaaS applications such as Notion, Google Drive, and more. Find us at https://psychic.dev
Install the library using npm:
npm install @psychicdev/link
Here's an example of how to use the library:
import React, { useEffect, useState } from 'react';
import { usePsychicLink } from '@psychicdev/link';
const App = () => {
const [newConnection, setNewConnection] = useState(null);
// Your Psychic.dev public API key
const publicKey = '5c362fda-bb72-4a6c-b930-71f33ad45f79';
// Unique ID for this connection
const connectionId = '2cbaa840-0b21-4d8e-924c-e418a08ce53f';
// usePsychicLink accepts a callback that handles your application logic once a new connection is established
const { open, isReady, isLoading, error } = usePsychicLink(publicKey, (newConnection: string) => setNewConnection(newConnection));
useEffect(() => {
// Shows the Psychic Link modal to the user
open(connectionId);
}, []);
return (
<div className="App">
{newConnection && <div>{newConnection}</div>}
</div>
);
};
export default App;
For assistance, join the Psychic community Slack here
If you encounter an "Invalid hook call" warning when importing the library into another project, it might be caused by the library using a different version of React than the project. To resolve this issue, follow the instructions provided in this StackOverflow post: Invalid hook call warning - linking a React app and a local npm package
FAQs
`@psychicdev/link` is a React library that provides a hook for easy authentication with popular SaaS applications such as Notion, Google Drive, and more. Find us at https://psychic.dev
The npm package @psychicdev/link receives a total of 0 weekly downloads. As such, @psychicdev/link popularity was classified as not popular.
We found that @psychicdev/link demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.