remix-auth-oauth2
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -128,4 +128,9 @@ "use strict"; | ||
debug("Failed to verify user", error); | ||
let message = error.message; | ||
return await this.failure(message, request, sessionStorage, options); | ||
if (error instanceof Error) { | ||
return await this.failure(error.message, request, sessionStorage, options, error); | ||
} | ||
if (typeof error === "string") { | ||
return await this.failure(error, request, sessionStorage, options, new Error(error)); | ||
} | ||
return await this.failure("Unknown error", request, sessionStorage, options, new Error(JSON.stringify(error, null, 2))); | ||
} | ||
@@ -132,0 +137,0 @@ debug("User authenticated"); |
{ | ||
"name": "remix-auth-oauth2", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"main": "./build/index.js", | ||
@@ -27,3 +27,4 @@ "types": "./build/index.d.ts", | ||
"peerDependencies": { | ||
"@remix-run/server-runtime": "^1.0.0" | ||
"@remix-run/server-runtime": "^1.0.0", | ||
"remix-auth": "^3.2.2" | ||
}, | ||
@@ -35,4 +36,4 @@ "devDependencies": { | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@remix-run/node": "^1.4.3", | ||
"@remix-run/react": "^1.4.3", | ||
"@remix-run/node": "^1.0.0", | ||
"@remix-run/react": "^1.0.0", | ||
"@remix-run/server-runtime": "^1.0.0", | ||
@@ -54,3 +55,5 @@ "@types/debug": "^4.1.7", | ||
"prettier": "^2.6.2", | ||
"react": "^18.1.0", | ||
"react": "^17.0.0", | ||
"react-dom": "^17.0.0", | ||
"remix-auth": "^3.4.0", | ||
"ts-node": "^10.7.0", | ||
@@ -61,5 +64,5 @@ "typescript": "^4.6.4" | ||
"debug": "^4.3.4", | ||
"remix-auth": "^3.2.2", | ||
"remix-auth": "^3.4.0", | ||
"uuid": "^8.3.2" | ||
} | ||
} |
@@ -14,2 +14,8 @@ # OAuth2Strategy | ||
### Installation | ||
```bash | ||
npm add remix-auth-oauth2 | ||
``` | ||
### Directly | ||
@@ -16,0 +22,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25192
369
220
5
27
Updatedremix-auth@^3.4.0