@bananacool467/authtics 1.0.58 → 1.0.62
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.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const getAccount: (accessToken: string, clientId: string, clientSecret: string, userIp: string) => Promise<any>;
|
|
12
12
|
export declare const authtics: {
|
|
13
|
-
useAccount: () =>
|
|
13
|
+
useAccount: () => any[];
|
|
14
14
|
use: (clientId: string, clientSecret: string, flow: boolean) => any[];
|
|
15
15
|
};
|
package/dist/index.js
CHANGED
|
@@ -113,7 +113,7 @@ exports.authtics = {
|
|
|
113
113
|
var _a;
|
|
114
114
|
if (req.path != '/api/authtics-integration/get-account' && req.path != '/api/authtics-integration/login' && req.path != '/api/authtics-integration/logout' && req.path != '/api/authtics-integration/code-exchanger') {
|
|
115
115
|
const userIp = req.ip;
|
|
116
|
-
const token = req.query.
|
|
116
|
+
const token = req.query.access_token;
|
|
117
117
|
const cookie = (_a = req.cookies) === null || _a === void 0 ? void 0 : _a.AUTHTICS_ACCOUNT_ACCESS_TOKEN;
|
|
118
118
|
if (token) {
|
|
119
119
|
res.cookie('AUTHTICS_ACCOUNT_ACCESS_TOKEN', token, {
|
|
@@ -143,7 +143,7 @@ exports.authtics = {
|
|
|
143
143
|
if (extracted.message)
|
|
144
144
|
return res.status(404).json({ message: extracted.message, redirect: true });
|
|
145
145
|
res.status(200).json({ account, success: true });
|
|
146
|
-
next();
|
|
146
|
+
//next();
|
|
147
147
|
}
|
|
148
148
|
else if (req.path == '/api/authtics-integration/login') {
|
|
149
149
|
var search;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bananacool467/authtics",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Use Authtics (An Auth service) to add accounts to your site like Auth0! (This is currently underdevelopment. Issues are expected.)",
|
|
3
|
+
"version": "1.0.62",
|
|
4
|
+
"description": "Use Authtics (An Auth service) to add accounts to your site like Auth0! (This is currently underdevelopment and Authtics is also underdevelopment. Issues are expected.)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|