Socket
Socket
Sign inDemoInstall

@octokit/oauth-app

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/oauth-app - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

10

dist-node/index.js

@@ -16,3 +16,3 @@ 'use strict';

const VERSION = "2.0.1";
const VERSION = "2.0.2";

@@ -208,3 +208,3 @@ function addEventHandler(state, eventName, eventHandler) {

data
} = await request("POST /applications/:client_id/token", options);
} = await request("POST /applications/{client_id}/token", options);
return data;

@@ -234,3 +234,3 @@ }

data
} = await request("PATCH /applications/:client_id/token", options);
} = await request("PATCH /applications/{client_id}/token", options);
return data;

@@ -274,3 +274,3 @@ }

data
} = await request("DELETE /applications/:client_id/token", options);
} = await request("DELETE /applications/{client_id}/token", options);
return data;

@@ -328,3 +328,3 @@ }

data
} = await request("DELETE /applications/:client_id/grant", options);
} = await request("DELETE /applications/{client_id}/grant", options);
return data;

@@ -331,0 +331,0 @@ }

import { request as defaultRequest } from "@octokit/request";
import btoa from "btoa-lite";
async function sendCheckTokenRequest(request, options) {
const { data } = await request("POST /applications/:client_id/token", options);
const { data } = await request("POST /applications/{client_id}/token", options);
return data;

@@ -6,0 +6,0 @@ }

@@ -6,3 +6,3 @@ import { createOAuthAppAuth } from "@octokit/auth-oauth-app";

async function sendDeleteAuthorizationRequest(request, options) {
const { data } = await request("DELETE /applications/:client_id/grant", options);
const { data } = await request("DELETE /applications/{client_id}/grant", options);
return data;

@@ -9,0 +9,0 @@ }

@@ -6,3 +6,3 @@ import { request as defaultRequest } from "@octokit/request";

async function sendDeleteTokenRequest(request, options) {
const { data } = await request("DELETE /applications/:client_id/token", options);
const { data } = await request("DELETE /applications/{client_id}/token", options);
return data;

@@ -9,0 +9,0 @@ }

@@ -5,3 +5,3 @@ import { request as defaultRequest } from "@octokit/request";

async function sendResetTokenRequest(request, options) {
const { data } = await request("PATCH /applications/:client_id/token", options);
const { data } = await request("PATCH /applications/{client_id}/token", options);
return data;

@@ -8,0 +8,0 @@ }

@@ -1,1 +0,1 @@

export const VERSION = "2.0.1";
export const VERSION = "2.0.2";

@@ -1,1 +0,1 @@

export declare const VERSION = "2.0.1";
export declare const VERSION = "2.0.2";
{
"name": "@octokit/oauth-app",
"description": "GitHub OAuth toolset for Node.js",
"version": "2.0.1",
"version": "2.0.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "files": [

@@ -1171,4 +1171,4 @@ # oauth-app.js

| `POST /api/github/oauth/token` | Exchange an authorization code for an OAuth Access token. If successful, the `token` event gets triggered. |
| `GET /api/github/oauth/token` | Check if token is valid. Must authenticate using token in `Authorization` header. Uses GitHub's [`POST /applications/:client_id/token`](https://developer.github.com/v3/apps/oauth_applications/#check-a-token) endpoint |
| `PATCH /api/github/oauth/token` | Resets a token (invalidates current one, returns new token). Must authenticate using token in `Authorization` header. Uses GitHub's [`PATCH /applications/:client_id/token`](https://developer.github.com/v3/apps/oauth_applications/#reset-a-token) endpoint. |
| `GET /api/github/oauth/token` | Check if token is valid. Must authenticate using token in `Authorization` header. Uses GitHub's [`POST /applications/{client_id}/token`](https://developer.github.com/v3/apps/oauth_applications/#check-a-token) endpoint |
| `PATCH /api/github/oauth/token` | Resets a token (invalidates current one, returns new token). Must authenticate using token in `Authorization` header. Uses GitHub's [`PATCH /applications/{client_id}/token`](https://developer.github.com/v3/apps/oauth_applications/#reset-a-token) endpoint. |
| `DELETE /api/github/oauth/token` | Invalidates current token, basically the equivalent of a logout. Must authenticate using token in `Authorization` header. |

@@ -1175,0 +1175,0 @@ | `DELETE /api/github/oauth/grant` | Revokes the user's grant, basically the equivalent of an uninstall. must authenticate using token in `Authorization` header. |

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