@bananacool467/authtics 1.0.50 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -124,7 +124,12 @@ exports.authtics = {
|
|
|
124
124
|
if (req.body && req.body.search) {
|
|
125
125
|
search = req.body.search;
|
|
126
126
|
}
|
|
127
|
-
|
|
127
|
+
if (search && search.replace) {
|
|
128
|
+
res.status(200).json({ redirect: ("https://eb29e77b-9bd2-4e3b-9469-81d3af2a8fbe-00-1ag45w1mgbsv1.picard.replit.dev/login?client_id=" + clientId + "&redirect=" + (((search != null) && search.replace) ? search.replace("&", "%26") : req.query.r)) });
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
res.redirect("https://eb29e77b-9bd2-4e3b-9469-81d3af2a8fbe-00-1ag45w1mgbsv1.picard.replit.dev/login?client_id=" + clientId + "&redirect=" + req.query.r);
|
|
132
|
+
}
|
|
128
133
|
next();
|
|
129
134
|
}
|
|
130
135
|
else if (req.path == '/api/authtics-integration/logout') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bananacool467/authtics",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54",
|
|
4
4
|
"description": "Use Authtics (An Auth service) to add accounts to your site like Auth0! (This is currently underdevelopment. Issues are expected.)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|