Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@startupjs/auth-idg

Package Overview
Dependencies
Maintainers
6
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startupjs/auth-idg

iDecisionGames auth plugin for StartupJS auth module

latest
npmnpm
Version
0.55.11
Version published
Maintainers
6
Created
Source

Авторизация через iDecisionGames

Инициализация главного модуля

Настройка главного модуля

Требования

@startupjs/auth: >= 0.33.0
react-native-webview: 10.10.2

Инициализация на сервере

Импорт стратегии:

import { Strategy as IDGStrategy } from '@startupjs/auth-idg/server'

Импорт либы для конфига:

import conf from 'nconf'

В startupjsServer, в стратегии функции initAuth нужно добавить IDGStrategy, с переменными из конфига:

initAuth(ee, {
  strategies: [
    new IDGStrategy({
      clientId: conf.get('IDG_CLIENT_ID'),
      clientSecret: conf.get('IDG_CLIENT_SECRET')
    })
  ]
})

Инициализация в верстке

import { AuthButton as IDGAuthButton } from '@startupjs/auth-idg/client'

FAQs

Package last updated on 22 Dec 2023

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