Socket
Book a DemoInstallSign in
Socket

@manifoldxyz/oauth-widget-react

Package Overview
Dependencies
Maintainers
9
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@manifoldxyz/oauth-widget-react

### Install

0.0.11
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
9
Weekly downloads
 
Created
Source

Manifold OAuth Widget - React

Install

> yarn add @manifoldxyz/oauth-widget-react

Auth Types

Implicit Grant

This flow type is meant for purely frontend applications. Your user will be directed to a login page, and once they sign the login, they will be redirected to your redirectUri with the query param ?token=, which is an access token to call the Manifold Data API resources.

import { ManifoldOAuthLink } from '@manifoldxyz/oauth-widget-react'

<ManifoldOAuthLink
  clientId="abcd"
  grantType="token"
  redirectUri="https://developers.manifoldxyz.dev/"
/>

Authorization Code Grant

This login flow is meant for when you have a backend as well as a frontend, and you can keep your Client Secret safe on the backend. Here, your user will be directed to a login page and once they sign the login, will be redirected to your redirectUri with the query param of ?code=, which is an authorization code you can use (one-time) to get an access token.

You will want to pass this code to your backend, and use the backend to call our OAuth server to get a token based on the code, your clientId, and your clientSecret.

import { ManifoldOAuthLink } from '@manifoldxyz/oauth-widget-react'

<ManifoldOAuthLink
  clientId="abcd"
  grantType="code"
  redirectUri="https://developers.manifoldxyz.dev/"
/>

FAQs

Package last updated on 18 Oct 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.