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

@mybiogen/auth-openid

Package Overview
Dependencies
Maintainers
8
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mybiogen/auth-openid

Authorization for OpenID

  • 1.8.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
8
Created
Source

auth-openid

Quickstart

1. Install (assuming the private npm registry is already set up)

yarn add @mybiogen/open-authid

2. Create JanrainJS instance.
import JanrainJS from '@mybiogen/open-authid'

const janrain = new JanrainJS(JANRAIN_CLIENT_ID, JANRAIN_CONFIG_URL, JANRAIN_REDIRECT_URI)

Note: JANRAIN_CLIENT_ID, JANRAIN_CONFIG_URL and JANRAIN_REDIRECT_URI are required params.

API Summary

janrain.login()(): voidUser login method.
janrain.logout()async (): Promise<void>User logout method.
janrain.watchAuth(callback)async (cb: WatchAuthCallback): Promise<void>Method for watching the changes in authentication status.
janrain.getUserInfo()async (): Promise<JanrainUserInfo or undefined>Method for retrieving user information.
janrain.refreshToken()async (): Promise<Init or undefined>Method for refreshing authentication token.

Available types

import { Token, JanrainUserInfo, WatchAuthCallback, Init, ConfigEndpoint } from '@mybiogen/open-authid';

FAQs

Package last updated on 04 Jun 2024

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