Socket
Socket
Sign inDemoInstall

arctic

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arctic - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

4

dist/providers/google.d.ts

@@ -10,4 +10,4 @@ export declare class Google {

});
createAuthorizationURL(state: string): Promise<URL>;
validateAuthorizationCode(code: string): Promise<GoogleTokens>;
createAuthorizationURL(state: string, codeVerifier?: string): Promise<URL>;
validateAuthorizationCode(code: string, codeVerifier?: string): Promise<GoogleTokens>;
getUser(accessToken: string): Promise<GoogleUser>;

@@ -14,0 +14,0 @@ refreshAccessToken(refreshToken: string): Promise<GoogleRefreshedTokens>;

@@ -20,6 +20,7 @@ import { TimeSpan, createDate } from "oslo";

}
async createAuthorizationURL(state) {
async createAuthorizationURL(state, codeVerifier) {
const url = await this.client.createAuthorizationURL({
state,
scope: this.scope
scope: this.scope,
codeVerifier
});

@@ -29,6 +30,7 @@ url.searchParams.set("access_type", this.accessType);

}
async validateAuthorizationCode(code) {
async validateAuthorizationCode(code, codeVerifier) {
const result = await this.client.validateAuthorizationCode(code, {
authenticateWith: "request_body",
credentials: this.clientSecret
credentials: this.clientSecret,
codeVerifier
});

@@ -35,0 +37,0 @@ return {

{
"name": "arctic",
"type": "module",
"version": "0.3.2",
"version": "0.3.3",
"description": "OAuth 2.0 with built-in providers",

@@ -6,0 +6,0 @@ "main": "dist/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