Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@riseact/nextjs-sdk

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@riseact/nextjs-sdk

Riseact SDK for Next.js

  • 1.4.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-71.43%
Maintainers
3
Weekly downloads
 
Created
Source

Riseact SDK

Next helpers

Configure Riseact

Create a file called [...riseact].js in pages/api/auth. This contains the dynamic route handler for Riseact which will also contain all of your global Riseact configurations.

import { AuthHandler } from "riseact";

export default AuthHandler({
  nextHost: "http://localhost:3000",
  riseactHost: "https://riseact.org",
  clientId: "<your-client-id>",
  clientSecret: "<your-client-secret>",
  errorPagePath: "/error",
  successPagePath: "/",
  callback: async (accessToken, refreshToken) => {
    // do something with the user's credentials
    // if error is thrown, user will be redirected to /error
    await saveCredentials(accessToken, refreshToken);
  },
});

All requests to /api/auth/* (install, redirect) will automatically be handled by Riseact.

Install the app

Visit localhost:3000/api/auth/install

FAQs

Package last updated on 12 Dec 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc