New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@manifoldxyz/oauth-widget-js

Package Overview
Dependencies
Maintainers
9
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manifoldxyz/oauth-widget-js

### Install

  • 0.0.2
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
9
Weekly downloads
 
Created
Source

Manifold OAuth Widget - Plain JS

Install

> yarn add @manifoldxyz/oauth-widget-js

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-js'

<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-js'

<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

  • 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