@paladen/auth
Advanced tools
Comparing version 0.0.81 to 0.0.82
import { BaseError, BaseErrorProps } from "@paladen/errors"; | ||
export declare class AlreadyAuthenticatedError extends BaseError { | ||
export declare class AuthError extends BaseError { | ||
isAuthError: boolean; | ||
constructor(props?: BaseErrorProps); | ||
} | ||
export declare class UserAlreadyExistsError extends BaseError { | ||
export declare class AlreadyAuthenticatedError extends AuthError { | ||
constructor(props?: BaseErrorProps); | ||
} | ||
export declare class AuthenticationFailedError extends BaseError { | ||
export declare class UserAlreadyExistsError extends AuthError { | ||
constructor(props?: BaseErrorProps); | ||
} | ||
export declare class AuthenticationFailedError extends AuthError { | ||
constructor(props?: BaseErrorProps); | ||
} | ||
export declare class NotAuthenticatedError extends AuthError { | ||
constructor(props?: BaseErrorProps); | ||
} |
@@ -335,48 +335,78 @@ 'use strict'; | ||
var AlreadyAuthenticatedError = /*#__PURE__*/function (_BaseError) { | ||
_inherits(AlreadyAuthenticatedError, _BaseError); | ||
var AuthError = /*#__PURE__*/function (_BaseError) { | ||
_inherits(AuthError, _BaseError); | ||
function AlreadyAuthenticatedError(props) { | ||
function AuthError(props) { | ||
var _this; | ||
_classCallCheck(this, AlreadyAuthenticatedError); | ||
_classCallCheck(this, AuthError); | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(AlreadyAuthenticatedError).call(this, props)); | ||
_this.name = "AlreadyAuthenticatedError"; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(AuthError).call(this, props)); | ||
_this.isAuthError = true; | ||
return _this; | ||
} | ||
return AlreadyAuthenticatedError; | ||
return AuthError; | ||
}(dist_1$1); | ||
var UserAlreadyExistsError = /*#__PURE__*/function (_BaseError2) { | ||
_inherits(UserAlreadyExistsError, _BaseError2); | ||
var AlreadyAuthenticatedError = /*#__PURE__*/function (_AuthError) { | ||
_inherits(AlreadyAuthenticatedError, _AuthError); | ||
function UserAlreadyExistsError(props) { | ||
function AlreadyAuthenticatedError(props) { | ||
var _this2; | ||
_classCallCheck(this, UserAlreadyExistsError); | ||
_classCallCheck(this, AlreadyAuthenticatedError); | ||
_this2 = _possibleConstructorReturn(this, _getPrototypeOf(UserAlreadyExistsError).call(this, props)); | ||
_this2.name = "UserAlreadyExistsError"; | ||
_this2 = _possibleConstructorReturn(this, _getPrototypeOf(AlreadyAuthenticatedError).call(this, props)); | ||
_this2.name = "AlreadyAuthenticatedError"; | ||
return _this2; | ||
} | ||
return AlreadyAuthenticatedError; | ||
}(AuthError); | ||
var UserAlreadyExistsError = /*#__PURE__*/function (_AuthError2) { | ||
_inherits(UserAlreadyExistsError, _AuthError2); | ||
function UserAlreadyExistsError(props) { | ||
var _this3; | ||
_classCallCheck(this, UserAlreadyExistsError); | ||
_this3 = _possibleConstructorReturn(this, _getPrototypeOf(UserAlreadyExistsError).call(this, props)); | ||
_this3.name = "UserAlreadyExistsError"; | ||
return _this3; | ||
} | ||
return UserAlreadyExistsError; | ||
}(dist_1$1); | ||
var AuthenticationFailedError = /*#__PURE__*/function (_BaseError3) { | ||
_inherits(AuthenticationFailedError, _BaseError3); | ||
}(AuthError); | ||
var AuthenticationFailedError = /*#__PURE__*/function (_AuthError3) { | ||
_inherits(AuthenticationFailedError, _AuthError3); | ||
function AuthenticationFailedError(props) { | ||
var _this3; | ||
var _this4; | ||
_classCallCheck(this, AuthenticationFailedError); | ||
_this3 = _possibleConstructorReturn(this, _getPrototypeOf(AuthenticationFailedError).call(this, props)); | ||
_this3.name = "AuthenticationFailedError"; | ||
return _this3; | ||
_this4 = _possibleConstructorReturn(this, _getPrototypeOf(AuthenticationFailedError).call(this, props)); | ||
_this4.name = "AuthenticationFailedError"; | ||
return _this4; | ||
} | ||
return AuthenticationFailedError; | ||
}(dist_1$1); | ||
}(AuthError); | ||
var NotAuthenticatedError = /*#__PURE__*/function (_AuthError4) { | ||
_inherits(NotAuthenticatedError, _AuthError4); | ||
function NotAuthenticatedError(props) { | ||
var _this5; | ||
_classCallCheck(this, NotAuthenticatedError); | ||
_this5 = _possibleConstructorReturn(this, _getPrototypeOf(NotAuthenticatedError).call(this, props)); | ||
_this5.name = "NotAuthenticatedError"; | ||
return _this5; | ||
} | ||
return NotAuthenticatedError; | ||
}(AuthError); | ||
var buildSessionCookieString = function buildSessionCookieString(name, value, expiryDate) { | ||
@@ -421,3 +451,5 @@ return ["".concat(name, "=").concat(value), "path=/", "SameSite=Lax", "expires=".concat(expiryDate), "HttpOnly", process.env.NODE_ENV === "production" ? "Secure;" : null].join(";"); | ||
exports.AuthContextProvider = AuthContextProvider; | ||
exports.AuthError = AuthError; | ||
exports.AuthenticationFailedError = AuthenticationFailedError; | ||
exports.NotAuthenticatedError = NotAuthenticatedError; | ||
exports.UserAlreadyExistsError = UserAlreadyExistsError; | ||
@@ -424,0 +456,0 @@ exports.buildSessionCookieString = buildSessionCookieString; |
{ | ||
"name": "@paladen/auth", | ||
"version": "0.0.81", | ||
"version": "0.0.82", | ||
"repository": "https://github.com/samstr/paladen", | ||
@@ -18,4 +18,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@paladen/config": "^0.0.81", | ||
"@paladen/errors": "^0.0.81", | ||
"@paladen/config": "^0.0.82", | ||
"@paladen/errors": "^0.0.82", | ||
"react": "^16.13.0", | ||
@@ -34,3 +34,3 @@ "react-dom": "^16.13.0" | ||
}, | ||
"gitHead": "dfb0f4e17346a6083acb9f0d147665c02d7b9b54" | ||
"gitHead": "d76317e9575fd829e1c6939a0b16fd36946d637b" | ||
} |
16969
426
+ Added@paladen/config@0.0.82(transitive)
+ Added@paladen/errors@0.0.82(transitive)
- Removed@paladen/config@0.0.81(transitive)
- Removed@paladen/errors@0.0.81(transitive)
Updated@paladen/config@^0.0.82
Updated@paladen/errors@^0.0.82