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

@brouwervos/sdk

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brouwervos/sdk - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

6

dist/index.d.ts

@@ -147,2 +147,8 @@ /// <reference types="node" />

get partner(): {
auth_uri: (account: {
first_name: string;
last_name: string;
email: string;
phone?: string;
}, redirecetUri: string) => string;
company: {

@@ -149,0 +155,0 @@ all: () => Promise<PartnerCompanyType[]>;

@@ -345,2 +345,19 @@ import jsonwebtoken from "jsonwebtoken";

return {
auth_uri: (account, redirecetUri) => {
const accessToken = jsonwebtoken.sign({
given_name: account.first_name,
family_name: account.last_name,
email: account.email,
phone: account.phone,
}, this.private_key, {
issuer: this.url,
subject: this.partner_id,
audience: 'brouwervos.nl/accounts',
algorithm: 'RS256',
});
const searchParams = new URLSearchParams();
searchParams.append("code", ['partner', this.partner_id, accessToken].join(":"));
searchParams.append("redirect_uri", !redirecetUri.startsWith('https://www.brouwervos.nl') ? 'https://www.brouwervos.nl' + redirecetUri : redirecetUri);
return "https://www.brouwervos.nl/v1/accounts/partner?" + searchParams;
},
company: {

@@ -347,0 +364,0 @@ all: async () => {

2

package.json
{
"name": "@brouwervos/sdk",
"version": "1.0.10",
"version": "1.0.11",
"description": "",

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

Sorry, the diff of this file is not supported yet

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