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

casdoor-js-sdk

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

casdoor-js-sdk - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

1

lib/cjs/sdk.d.ts

@@ -6,2 +6,3 @@ export interface sdkConfig {

organizationName: string;
redirectPath: string;
}

@@ -8,0 +9,0 @@ export interface account {

5

lib/cjs/sdk.js

@@ -19,2 +19,5 @@ "use strict";

this.config = config;
if (config.redirectPath === undefined || config.redirectPath === null) {
this.config.redirectPath = "/callback";
}
}

@@ -30,3 +33,3 @@ getSignupUrl(enablePassword = true) {

getSigninUrl() {
const redirectUri = `${window.location.origin}/callback`;
const redirectUri = `${window.location.origin}${this.config.redirectPath}`;
const scope = "read";

@@ -33,0 +36,0 @@ const state = this.config.appName;

@@ -6,2 +6,3 @@ export interface sdkConfig {

organizationName: string;
redirectPath: string;
}

@@ -8,0 +9,0 @@ export interface account {

@@ -17,2 +17,5 @@ // Copyright 2021 The casbin Authors. All Rights Reserved.

this.config = config;
if (config.redirectPath === undefined || config.redirectPath === null) {
this.config.redirectPath = "/callback";
}
}

@@ -28,3 +31,3 @@ getSignupUrl(enablePassword = true) {

getSigninUrl() {
const redirectUri = `${window.location.origin}/callback`;
const redirectUri = `${window.location.origin}${this.config.redirectPath}`;
const scope = "read";

@@ -31,0 +34,0 @@ const state = this.config.appName;

{
"name": "casdoor-js-sdk",
"version": "0.0.2",
"version": "0.0.3",
"description": "Javascript client SDK for Casdoor",

@@ -5,0 +5,0 @@ "main": "lib/cjs/index.js",

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