Socket
Book a DemoInstallSign in
Socket

@authsignal/nextjs-helpers

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@authsignal/nextjs-helpers

## Installation

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
2
Created
Source

Authsignal Next.js helpers

Installation

Add the @authsignal/nextjs-helpers package to your package.json.

npm

npm install @authsignal/nextjs-helpers

yarn

yarn add @authsignal/nextjs-helpers

Usage

Wrap your top level app component with AuthsignalProvider:

import {AuthsignalProvider} from "@authsignal/nextjs-helpers";

function MyApp({Component, pageProps}: AppProps) {
  return (
    <AuthsignalProvider>
      <Component {...pageProps} />
    </AuthsignalProvider>
  );
}

Then you can use the useAuthsignal hook to access the Authsignal browser client:

import {useAuthsignal} from "@authsignal/nextjs-helpers";

function MyPage() {
  const authsignalClient = useAuthsignal();
}

Learn more about the Authsignal browser client in the API documentation.

Keywords

authsignal

FAQs

Package last updated on 05 Oct 2022

Did you know?

Socket

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.

Install

Related posts