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

@descope/react-sdk

Package Overview
Dependencies
Maintainers
4
Versions
619
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@descope/react-sdk - npm Package Compare versions

Comparing version 0.0.51 to 0.0.52-alpha.0

dist/index.d.ts

13

package.json
{
"name": "@descope/react-sdk",
"version": "0.0.51",
"main": "dist/Descope.js",
"types": "dist/Descope.d.ts",
"version": "0.0.52-alpha.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"description": "Descope React SDK",

@@ -16,3 +16,3 @@ "license": "ISC",

"dependencies": {
"@descope/web-component": "^0.0.25"
"@descope/web-component": "^0.0.26-alpha.1"
},

@@ -59,6 +59,9 @@ "devDependencies": {

"rollup": "^2.62.0",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-browsersync": "^1.3.3",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-dts": "^4.2.2",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^27.0.7",

@@ -73,3 +76,3 @@ "ts-node": "10.9.1",

"scripts": {
"start": "rollup -c rollup.config.app.js -w",
"start": "npm run build && rollup -c rollup.config.app.js -w",
"build": "rollup -c",

@@ -76,0 +79,0 @@ "test": "jest",

@@ -12,10 +12,25 @@ # @descope/react-sdk

### Render it in your application
#### Wrap your app with Auth Provider
```js
import Descope from '@descope/react-sdk'
import { AuthProvider } from '@descope/react-sdk'
const AppRoot = () => {
return (
<AuthProvider
projectId="myProjectId"
>
<App />
</AuthProvider>
)
}
```
#### Use Descope to render specific flow
```js
import { Descope } from '@descope/react-sdk'
const App = () => {
return (
{...}
<Descope
projectId="myProjectId"
flowId="myFlowId"

@@ -22,0 +37,0 @@ onSuccess={(e) => console.log('Logged in!')}

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