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

@atlaskit/outbound-auth-flow-client

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/outbound-auth-flow-client - npm Package Compare versions

Comparing version 3.2.1 to 3.3.0

8

build/tsconfig.json

@@ -12,3 +12,7 @@ {

],
"exclude": ["../src/**/__tests__/*"]
}
"exclude": [
"../src/**/__tests__/*",
"../src/**/*.test.*",
"../src/**/test.*"
]
}
# @atlaskit/outbound-auth-flow-client
## 3.3.0
### Minor Changes
- [`65cad419e85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65cad419e85) - Add 'AuthClientOAuth2.AuthError' error type
## 3.2.1

@@ -4,0 +10,0 @@

@@ -22,3 +22,3 @@ "use strict";

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

@@ -25,0 +25,0 @@ var AuthError = /*#__PURE__*/function (_Error) {

@@ -11,6 +11,8 @@ "use strict";

// representing when the authentication window is closed by the user
// 'authclientoauth2.autherror' is added to represent errors from
// outbound-auth
var isOfTypeAuthError = function isOfTypeAuthError(inputString) {
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable'].includes(inputString);
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable', 'authclientoauth2.autherror'].includes(inputString);
};
exports.isOfTypeAuthError = isOfTypeAuthError;
{
"name": "@atlaskit/outbound-auth-flow-client",
"version": "3.2.1"
"version": "3.3.0"
}
// See https://tools.ietf.org/html/rfc6749#section-4.1.2.1
// 'auth_window_closed' is returned in addition to types from this RFC,
// representing when the authentication window is closed by the user
// 'authclientoauth2.autherror' is added to represent errors from
// outbound-auth
export const isOfTypeAuthError = inputString => {
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable'].includes(inputString);
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable', 'authclientoauth2.autherror'].includes(inputString);
};
{
"name": "@atlaskit/outbound-auth-flow-client",
"version": "3.2.1"
"version": "3.3.0"
}

@@ -9,3 +9,3 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

@@ -12,0 +12,0 @@ export var AuthError = /*#__PURE__*/function (_Error) {

// See https://tools.ietf.org/html/rfc6749#section-4.1.2.1
// 'auth_window_closed' is returned in addition to types from this RFC,
// representing when the authentication window is closed by the user
// 'authclientoauth2.autherror' is added to represent errors from
// outbound-auth
export var isOfTypeAuthError = function isOfTypeAuthError(inputString) {
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable'].includes(inputString);
return ['auth_window_closed', 'invalid_request', 'unauthorized_client', 'access_denied', 'unsupported_response_type', 'invalid_scope', 'server_error', 'temporarily_unavailable', 'authclientoauth2.autherror'].includes(inputString);
};
{
"name": "@atlaskit/outbound-auth-flow-client",
"version": "3.2.1"
"version": "3.3.0"
}
export declare class AuthError extends Error {
readonly message: string;
readonly type?: "auth_window_closed" | "invalid_request" | "unauthorized_client" | "access_denied" | "unsupported_response_type" | "invalid_scope" | "server_error" | "temporarily_unavailable" | undefined;
constructor(message: string, type?: "auth_window_closed" | "invalid_request" | "unauthorized_client" | "access_denied" | "unsupported_response_type" | "invalid_scope" | "server_error" | "temporarily_unavailable" | undefined);
readonly type?: "auth_window_closed" | "invalid_request" | "unauthorized_client" | "access_denied" | "unsupported_response_type" | "invalid_scope" | "server_error" | "temporarily_unavailable" | "authclientoauth2.autherror" | undefined;
constructor(message: string, type?: "auth_window_closed" | "invalid_request" | "unauthorized_client" | "access_denied" | "unsupported_response_type" | "invalid_scope" | "server_error" | "temporarily_unavailable" | "authclientoauth2.autherror" | undefined);
}

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

export declare type AuthErrorType = 'auth_window_closed' | 'invalid_request' | 'unauthorized_client' | 'access_denied' | 'unsupported_response_type' | 'invalid_scope' | 'server_error' | 'temporarily_unavailable';
export declare type AuthErrorType = 'auth_window_closed' | 'invalid_request' | 'unauthorized_client' | 'access_denied' | 'unsupported_response_type' | 'invalid_scope' | 'server_error' | 'temporarily_unavailable' | 'authclientoauth2.autherror';
export declare const isOfTypeAuthError: (inputString: string) => inputString is AuthErrorType;
{
"name": "@atlaskit/outbound-auth-flow-client",
"version": "3.2.1",
"version": "3.3.0",
"description": "Front-end library for starting outbound auth flows",

@@ -29,2 +29,3 @@ "publishConfig": {

"@atlaskit/docs": "*",
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
"typescript": "3.9.6"

@@ -35,3 +36,4 @@ },

"ui"
]
],
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
}
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