@monocloud/auth-nextjs 0.1.12 → 0.1.13
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/monocloud-next-client.cjs +1 -1
- package/dist/monocloud-next-client.mjs +1 -1
- package/dist/responses/monocloud-app-router-response.cjs +3 -2
- package/dist/responses/monocloud-app-router-response.cjs.map +1 -1
- package/dist/responses/monocloud-app-router-response.mjs +3 -2
- package/dist/responses/monocloud-app-router-response.mjs.map +1 -1
- package/dist/responses/monocloud-page-router-response.cjs +3 -2
- package/dist/responses/monocloud-page-router-response.cjs.map +1 -1
- package/dist/responses/monocloud-page-router-response.mjs +3 -2
- package/dist/responses/monocloud-page-router-response.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -146,7 +146,7 @@ var MonoCloudNextClient = class {
|
|
|
146
146
|
constructor(options) {
|
|
147
147
|
const opt = {
|
|
148
148
|
...options ?? {},
|
|
149
|
-
userAgent: (options === null || options === void 0 ? void 0 : options.userAgent) ?? `@monocloud/auth-nextjs@0.1.
|
|
149
|
+
userAgent: (options === null || options === void 0 ? void 0 : options.userAgent) ?? `@monocloud/auth-nextjs@0.1.13`,
|
|
150
150
|
debugger: (options === null || options === void 0 ? void 0 : options.debugger) ?? "@monocloud:auth-nextjs"
|
|
151
151
|
};
|
|
152
152
|
this.registerPublicEnvVariables();
|
|
@@ -145,7 +145,7 @@ var MonoCloudNextClient = class {
|
|
|
145
145
|
constructor(options) {
|
|
146
146
|
const opt = {
|
|
147
147
|
...options ?? {},
|
|
148
|
-
userAgent: (options === null || options === void 0 ? void 0 : options.userAgent) ?? `@monocloud/auth-nextjs@0.1.
|
|
148
|
+
userAgent: (options === null || options === void 0 ? void 0 : options.userAgent) ?? `@monocloud/auth-nextjs@0.1.13`,
|
|
149
149
|
debugger: (options === null || options === void 0 ? void 0 : options.debugger) ?? "@monocloud:auth-nextjs"
|
|
150
150
|
};
|
|
151
151
|
this.registerPublicEnvVariables();
|
|
@@ -10,7 +10,7 @@ var MonoCloudAppRouterResponse = class {
|
|
|
10
10
|
this.res.cookies.set(cookieName, value, options);
|
|
11
11
|
return Promise.resolve();
|
|
12
12
|
}
|
|
13
|
-
redirect(url, statusCode =
|
|
13
|
+
redirect(url, statusCode = 307) {
|
|
14
14
|
const { headers } = this.res;
|
|
15
15
|
this.res = next_server_js.NextResponse.redirect(url, {
|
|
16
16
|
status: statusCode,
|
|
@@ -54,8 +54,9 @@ var MonoCloudAppRouterResponse = class {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
setNoCache() {
|
|
57
|
-
this.res.headers.set("Cache-Control", "no-cache no-store");
|
|
57
|
+
this.res.headers.set("Cache-Control", "private, no-cache, no-store, must-revalidate, max-age=0");
|
|
58
58
|
this.res.headers.set("Pragma", "no-cache");
|
|
59
|
+
this.res.headers.set("Expires", "0");
|
|
59
60
|
}
|
|
60
61
|
done() {
|
|
61
62
|
return this.res;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monocloud-app-router-response.cjs","names":["NextResponse"],"sources":["../../src/responses/monocloud-app-router-response.ts"],"sourcesContent":["import type {\n CookieOptions,\n MonoCloudResponse,\n} from '@monocloud/auth-node-core';\n// eslint-disable-next-line import/extensions\nimport { NextResponse } from 'next/server.js';\n\nexport default class MonoCloudAppRouterResponse implements MonoCloudResponse {\n constructor(public res: NextResponse) {}\n\n setCookie(\n cookieName: string,\n value: string,\n options: CookieOptions\n ): Promise<void> {\n this.res.cookies.set(cookieName, value, options);\n return Promise.resolve();\n }\n\n redirect(url: string, statusCode: number | undefined =
|
|
1
|
+
{"version":3,"file":"monocloud-app-router-response.cjs","names":["NextResponse"],"sources":["../../src/responses/monocloud-app-router-response.ts"],"sourcesContent":["import type {\n CookieOptions,\n MonoCloudResponse,\n} from '@monocloud/auth-node-core';\n// eslint-disable-next-line import/extensions\nimport { NextResponse } from 'next/server.js';\n\nexport default class MonoCloudAppRouterResponse implements MonoCloudResponse {\n constructor(public res: NextResponse) {}\n\n setCookie(\n cookieName: string,\n value: string,\n options: CookieOptions\n ): Promise<void> {\n this.res.cookies.set(cookieName, value, options);\n return Promise.resolve();\n }\n\n redirect(url: string, statusCode: number | undefined = 307): void {\n const { headers } = this.res;\n this.res = NextResponse.redirect(url, { status: statusCode, headers });\n }\n\n sendJson(data: any, statusCode?: number): void {\n const { headers } = this.res;\n this.res = NextResponse.json(data, { status: statusCode, headers });\n }\n\n /* v8 ignore next */\n notFound(): void {\n const { headers } = this.res;\n this.res = new NextResponse(null, { status: 404, headers });\n }\n\n internalServerError(): void {\n const { headers } = this.res;\n this.res = new NextResponse(null, { status: 500, headers });\n }\n\n noContent(): void {\n const { headers } = this.res;\n this.res = new NextResponse(null, { status: 204, headers });\n }\n\n methodNotAllowed(): void {\n const { headers } = this.res;\n this.res = new NextResponse(null, { status: 405, headers });\n }\n\n setNoCache(): void {\n this.res.headers.set(\n 'Cache-Control',\n 'private, no-cache, no-store, must-revalidate, max-age=0'\n );\n this.res.headers.set('Pragma', 'no-cache');\n this.res.headers.set('Expires', '0');\n }\n\n done(): any {\n return this.res;\n }\n}\n"],"mappings":";;;;AAOA,IAAqB,6BAArB,MAA6E;CAC3E,YAAY,AAAO,KAAmB;EAAnB;;CAEnB,UACE,YACA,OACA,SACe;AACf,OAAK,IAAI,QAAQ,IAAI,YAAY,OAAO,QAAQ;AAChD,SAAO,QAAQ,SAAS;;CAG1B,SAAS,KAAa,aAAiC,KAAW;EAChE,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAMA,4BAAa,SAAS,KAAK;GAAE,QAAQ;GAAY;GAAS,CAAC;;CAGxE,SAAS,MAAW,YAA2B;EAC7C,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAMA,4BAAa,KAAK,MAAM;GAAE,QAAQ;GAAY;GAAS,CAAC;;;CAIrE,WAAiB;EACf,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAM,IAAIA,4BAAa,MAAM;GAAE,QAAQ;GAAK;GAAS,CAAC;;CAG7D,sBAA4B;EAC1B,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAM,IAAIA,4BAAa,MAAM;GAAE,QAAQ;GAAK;GAAS,CAAC;;CAG7D,YAAkB;EAChB,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAM,IAAIA,4BAAa,MAAM;GAAE,QAAQ;GAAK;GAAS,CAAC;;CAG7D,mBAAyB;EACvB,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAM,IAAIA,4BAAa,MAAM;GAAE,QAAQ;GAAK;GAAS,CAAC;;CAG7D,aAAmB;AACjB,OAAK,IAAI,QAAQ,IACf,iBACA,0DACD;AACD,OAAK,IAAI,QAAQ,IAAI,UAAU,WAAW;AAC1C,OAAK,IAAI,QAAQ,IAAI,WAAW,IAAI;;CAGtC,OAAY;AACV,SAAO,KAAK"}
|
|
@@ -9,7 +9,7 @@ var MonoCloudAppRouterResponse = class {
|
|
|
9
9
|
this.res.cookies.set(cookieName, value, options);
|
|
10
10
|
return Promise.resolve();
|
|
11
11
|
}
|
|
12
|
-
redirect(url, statusCode =
|
|
12
|
+
redirect(url, statusCode = 307) {
|
|
13
13
|
const { headers } = this.res;
|
|
14
14
|
this.res = NextResponse.redirect(url, {
|
|
15
15
|
status: statusCode,
|
|
@@ -53,8 +53,9 @@ var MonoCloudAppRouterResponse = class {
|
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
setNoCache() {
|
|
56
|
-
this.res.headers.set("Cache-Control", "no-cache no-store");
|
|
56
|
+
this.res.headers.set("Cache-Control", "private, no-cache, no-store, must-revalidate, max-age=0");
|
|
57
57
|
this.res.headers.set("Pragma", "no-cache");
|
|
58
|
+
this.res.headers.set("Expires", "0");
|
|
58
59
|
}
|
|
59
60
|
done() {
|
|
60
61
|
return this.res;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monocloud-app-router-response.mjs","names":[],"sources":["../../src/responses/monocloud-app-router-response.ts"],"sourcesContent":["import type {\n CookieOptions,\n MonoCloudResponse,\n} from '@monocloud/auth-node-core';\n// eslint-disable-next-line import/extensions\nimport { NextResponse } from 'next/server.js';\n\nexport default class MonoCloudAppRouterResponse implements MonoCloudResponse {\n constructor(public res: NextResponse) {}\n\n setCookie(\n cookieName: string,\n value: string,\n options: CookieOptions\n ): Promise<void> {\n this.res.cookies.set(cookieName, value, options);\n return Promise.resolve();\n }\n\n redirect(url: string, statusCode: number | undefined =
|
|
1
|
+
{"version":3,"file":"monocloud-app-router-response.mjs","names":[],"sources":["../../src/responses/monocloud-app-router-response.ts"],"sourcesContent":["import type {\n CookieOptions,\n MonoCloudResponse,\n} from '@monocloud/auth-node-core';\n// eslint-disable-next-line import/extensions\nimport { NextResponse } from 'next/server.js';\n\nexport default class MonoCloudAppRouterResponse implements MonoCloudResponse {\n constructor(public res: NextResponse) {}\n\n setCookie(\n cookieName: string,\n value: string,\n options: CookieOptions\n ): Promise<void> {\n this.res.cookies.set(cookieName, value, options);\n return Promise.resolve();\n }\n\n redirect(url: string, statusCode: number | undefined = 307): void {\n const { headers } = this.res;\n this.res = NextResponse.redirect(url, { status: statusCode, headers });\n }\n\n sendJson(data: any, statusCode?: number): void {\n const { headers } = this.res;\n this.res = NextResponse.json(data, { status: statusCode, headers });\n }\n\n /* v8 ignore next */\n notFound(): void {\n const { headers } = this.res;\n this.res = new NextResponse(null, { status: 404, headers });\n }\n\n internalServerError(): void {\n const { headers } = this.res;\n this.res = new NextResponse(null, { status: 500, headers });\n }\n\n noContent(): void {\n const { headers } = this.res;\n this.res = new NextResponse(null, { status: 204, headers });\n }\n\n methodNotAllowed(): void {\n const { headers } = this.res;\n this.res = new NextResponse(null, { status: 405, headers });\n }\n\n setNoCache(): void {\n this.res.headers.set(\n 'Cache-Control',\n 'private, no-cache, no-store, must-revalidate, max-age=0'\n );\n this.res.headers.set('Pragma', 'no-cache');\n this.res.headers.set('Expires', '0');\n }\n\n done(): any {\n return this.res;\n }\n}\n"],"mappings":";;;AAOA,IAAqB,6BAArB,MAA6E;CAC3E,YAAY,AAAO,KAAmB;EAAnB;;CAEnB,UACE,YACA,OACA,SACe;AACf,OAAK,IAAI,QAAQ,IAAI,YAAY,OAAO,QAAQ;AAChD,SAAO,QAAQ,SAAS;;CAG1B,SAAS,KAAa,aAAiC,KAAW;EAChE,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAM,aAAa,SAAS,KAAK;GAAE,QAAQ;GAAY;GAAS,CAAC;;CAGxE,SAAS,MAAW,YAA2B;EAC7C,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAM,aAAa,KAAK,MAAM;GAAE,QAAQ;GAAY;GAAS,CAAC;;;CAIrE,WAAiB;EACf,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAM,IAAI,aAAa,MAAM;GAAE,QAAQ;GAAK;GAAS,CAAC;;CAG7D,sBAA4B;EAC1B,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAM,IAAI,aAAa,MAAM;GAAE,QAAQ;GAAK;GAAS,CAAC;;CAG7D,YAAkB;EAChB,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAM,IAAI,aAAa,MAAM;GAAE,QAAQ;GAAK;GAAS,CAAC;;CAG7D,mBAAyB;EACvB,MAAM,EAAE,YAAY,KAAK;AACzB,OAAK,MAAM,IAAI,aAAa,MAAM;GAAE,QAAQ;GAAK;GAAS,CAAC;;CAG7D,aAAmB;AACjB,OAAK,IAAI,QAAQ,IACf,iBACA,0DACD;AACD,OAAK,IAAI,QAAQ,IAAI,UAAU,WAAW;AAC1C,OAAK,IAAI,QAAQ,IAAI,WAAW,IAAI;;CAGtC,OAAY;AACV,SAAO,KAAK"}
|
|
@@ -15,7 +15,7 @@ var MonoCloudPageRouterResponse = class {
|
|
|
15
15
|
}
|
|
16
16
|
/* v8 ignore next */
|
|
17
17
|
redirect(url, statusCode) {
|
|
18
|
-
this.res.redirect(statusCode ??
|
|
18
|
+
this.res.redirect(statusCode ?? 307, url);
|
|
19
19
|
}
|
|
20
20
|
/* v8 ignore next */
|
|
21
21
|
sendJson(data, statusCode) {
|
|
@@ -40,8 +40,9 @@ var MonoCloudPageRouterResponse = class {
|
|
|
40
40
|
}
|
|
41
41
|
/* v8 ignore next */
|
|
42
42
|
setNoCache() {
|
|
43
|
-
this.res.setHeader("Cache-Control", "no-cache no-store");
|
|
43
|
+
this.res.setHeader("Cache-Control", "private, no-cache, no-store, must-revalidate, max-age=0");
|
|
44
44
|
this.res.setHeader("Pragma", "no-cache");
|
|
45
|
+
this.res.setHeader("Expires", "0");
|
|
45
46
|
}
|
|
46
47
|
/* v8 ignore next */
|
|
47
48
|
done() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monocloud-page-router-response.cjs","names":["cookie"],"sources":["../../src/responses/monocloud-page-router-response.ts"],"sourcesContent":["import type {\n CookieOptions,\n MonoCloudResponse,\n} from '@monocloud/auth-node-core';\nimport type { NextApiResponse } from 'next';\nimport { serialize } from 'cookie';\n\nexport default class MonoCloudPageRouterResponse implements MonoCloudResponse {\n constructor(public readonly res: NextApiResponse) {}\n\n setCookie(\n cookieName: string,\n value: string,\n options: CookieOptions\n ): Promise<void> {\n let cookies = this.res.getHeader('Set-Cookie') ?? [];\n\n /* v8 ignore if -- @preserve */\n if (!Array.isArray(cookies)) {\n cookies = [cookies as string];\n }\n\n this.res.setHeader('Set-Cookie', [\n ...cookies.filter(cookie => !cookie.startsWith(`${cookieName}=`)),\n serialize(cookieName, value, options),\n ]);\n\n return Promise.resolve();\n }\n\n /* v8 ignore next */\n redirect(url: string, statusCode?: number): void {\n this.res.redirect(statusCode ??
|
|
1
|
+
{"version":3,"file":"monocloud-page-router-response.cjs","names":["cookie"],"sources":["../../src/responses/monocloud-page-router-response.ts"],"sourcesContent":["import type {\n CookieOptions,\n MonoCloudResponse,\n} from '@monocloud/auth-node-core';\nimport type { NextApiResponse } from 'next';\nimport { serialize } from 'cookie';\n\nexport default class MonoCloudPageRouterResponse implements MonoCloudResponse {\n constructor(public readonly res: NextApiResponse) {}\n\n setCookie(\n cookieName: string,\n value: string,\n options: CookieOptions\n ): Promise<void> {\n let cookies = this.res.getHeader('Set-Cookie') ?? [];\n\n /* v8 ignore if -- @preserve */\n if (!Array.isArray(cookies)) {\n cookies = [cookies as string];\n }\n\n this.res.setHeader('Set-Cookie', [\n ...cookies.filter(cookie => !cookie.startsWith(`${cookieName}=`)),\n serialize(cookieName, value, options),\n ]);\n\n return Promise.resolve();\n }\n\n /* v8 ignore next */\n redirect(url: string, statusCode?: number): void {\n this.res.redirect(statusCode ?? 307, url);\n }\n\n /* v8 ignore next */\n sendJson(data: any, statusCode?: number): void {\n this.res.status(statusCode ?? 200);\n this.res.json(data);\n }\n\n /* v8 ignore next */\n notFound(): void {\n this.res.status(404);\n }\n\n /* v8 ignore next */\n internalServerError(): void {\n this.res.status(500);\n }\n\n /* v8 ignore next */\n noContent(): void {\n this.res.status(204);\n }\n\n /* v8 ignore next */\n methodNotAllowed(): void {\n this.res.status(405);\n }\n\n /* v8 ignore next */\n setNoCache(): void {\n this.res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, must-revalidate, max-age=0'\n );\n this.res.setHeader('Pragma', 'no-cache');\n this.res.setHeader('Expires', '0');\n }\n\n /* v8 ignore next */\n done(): any {\n this.res.end();\n }\n}\n"],"mappings":";;;;AAOA,IAAqB,8BAArB,MAA8E;CAC5E,YAAY,AAAgB,KAAsB;EAAtB;;CAE5B,UACE,YACA,OACA,SACe;EACf,IAAI,UAAU,KAAK,IAAI,UAAU,aAAa,IAAI,EAAE;;AAGpD,MAAI,CAAC,MAAM,QAAQ,QAAQ,CACzB,WAAU,CAAC,QAAkB;AAG/B,OAAK,IAAI,UAAU,cAAc,CAC/B,GAAG,QAAQ,QAAO,aAAU,CAACA,SAAO,WAAW,GAAG,WAAW,GAAG,CAAC,wBACvD,YAAY,OAAO,QAAQ,CACtC,CAAC;AAEF,SAAO,QAAQ,SAAS;;;CAI1B,SAAS,KAAa,YAA2B;AAC/C,OAAK,IAAI,SAAS,cAAc,KAAK,IAAI;;;CAI3C,SAAS,MAAW,YAA2B;AAC7C,OAAK,IAAI,OAAO,cAAc,IAAI;AAClC,OAAK,IAAI,KAAK,KAAK;;;CAIrB,WAAiB;AACf,OAAK,IAAI,OAAO,IAAI;;;CAItB,sBAA4B;AAC1B,OAAK,IAAI,OAAO,IAAI;;;CAItB,YAAkB;AAChB,OAAK,IAAI,OAAO,IAAI;;;CAItB,mBAAyB;AACvB,OAAK,IAAI,OAAO,IAAI;;;CAItB,aAAmB;AACjB,OAAK,IAAI,UACP,iBACA,0DACD;AACD,OAAK,IAAI,UAAU,UAAU,WAAW;AACxC,OAAK,IAAI,UAAU,WAAW,IAAI;;;CAIpC,OAAY;AACV,OAAK,IAAI,KAAK"}
|
|
@@ -14,7 +14,7 @@ var MonoCloudPageRouterResponse = class {
|
|
|
14
14
|
}
|
|
15
15
|
/* v8 ignore next */
|
|
16
16
|
redirect(url, statusCode) {
|
|
17
|
-
this.res.redirect(statusCode ??
|
|
17
|
+
this.res.redirect(statusCode ?? 307, url);
|
|
18
18
|
}
|
|
19
19
|
/* v8 ignore next */
|
|
20
20
|
sendJson(data, statusCode) {
|
|
@@ -39,8 +39,9 @@ var MonoCloudPageRouterResponse = class {
|
|
|
39
39
|
}
|
|
40
40
|
/* v8 ignore next */
|
|
41
41
|
setNoCache() {
|
|
42
|
-
this.res.setHeader("Cache-Control", "no-cache no-store");
|
|
42
|
+
this.res.setHeader("Cache-Control", "private, no-cache, no-store, must-revalidate, max-age=0");
|
|
43
43
|
this.res.setHeader("Pragma", "no-cache");
|
|
44
|
+
this.res.setHeader("Expires", "0");
|
|
44
45
|
}
|
|
45
46
|
/* v8 ignore next */
|
|
46
47
|
done() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monocloud-page-router-response.mjs","names":[],"sources":["../../src/responses/monocloud-page-router-response.ts"],"sourcesContent":["import type {\n CookieOptions,\n MonoCloudResponse,\n} from '@monocloud/auth-node-core';\nimport type { NextApiResponse } from 'next';\nimport { serialize } from 'cookie';\n\nexport default class MonoCloudPageRouterResponse implements MonoCloudResponse {\n constructor(public readonly res: NextApiResponse) {}\n\n setCookie(\n cookieName: string,\n value: string,\n options: CookieOptions\n ): Promise<void> {\n let cookies = this.res.getHeader('Set-Cookie') ?? [];\n\n /* v8 ignore if -- @preserve */\n if (!Array.isArray(cookies)) {\n cookies = [cookies as string];\n }\n\n this.res.setHeader('Set-Cookie', [\n ...cookies.filter(cookie => !cookie.startsWith(`${cookieName}=`)),\n serialize(cookieName, value, options),\n ]);\n\n return Promise.resolve();\n }\n\n /* v8 ignore next */\n redirect(url: string, statusCode?: number): void {\n this.res.redirect(statusCode ??
|
|
1
|
+
{"version":3,"file":"monocloud-page-router-response.mjs","names":[],"sources":["../../src/responses/monocloud-page-router-response.ts"],"sourcesContent":["import type {\n CookieOptions,\n MonoCloudResponse,\n} from '@monocloud/auth-node-core';\nimport type { NextApiResponse } from 'next';\nimport { serialize } from 'cookie';\n\nexport default class MonoCloudPageRouterResponse implements MonoCloudResponse {\n constructor(public readonly res: NextApiResponse) {}\n\n setCookie(\n cookieName: string,\n value: string,\n options: CookieOptions\n ): Promise<void> {\n let cookies = this.res.getHeader('Set-Cookie') ?? [];\n\n /* v8 ignore if -- @preserve */\n if (!Array.isArray(cookies)) {\n cookies = [cookies as string];\n }\n\n this.res.setHeader('Set-Cookie', [\n ...cookies.filter(cookie => !cookie.startsWith(`${cookieName}=`)),\n serialize(cookieName, value, options),\n ]);\n\n return Promise.resolve();\n }\n\n /* v8 ignore next */\n redirect(url: string, statusCode?: number): void {\n this.res.redirect(statusCode ?? 307, url);\n }\n\n /* v8 ignore next */\n sendJson(data: any, statusCode?: number): void {\n this.res.status(statusCode ?? 200);\n this.res.json(data);\n }\n\n /* v8 ignore next */\n notFound(): void {\n this.res.status(404);\n }\n\n /* v8 ignore next */\n internalServerError(): void {\n this.res.status(500);\n }\n\n /* v8 ignore next */\n noContent(): void {\n this.res.status(204);\n }\n\n /* v8 ignore next */\n methodNotAllowed(): void {\n this.res.status(405);\n }\n\n /* v8 ignore next */\n setNoCache(): void {\n this.res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, must-revalidate, max-age=0'\n );\n this.res.setHeader('Pragma', 'no-cache');\n this.res.setHeader('Expires', '0');\n }\n\n /* v8 ignore next */\n done(): any {\n this.res.end();\n }\n}\n"],"mappings":";;;AAOA,IAAqB,8BAArB,MAA8E;CAC5E,YAAY,AAAgB,KAAsB;EAAtB;;CAE5B,UACE,YACA,OACA,SACe;EACf,IAAI,UAAU,KAAK,IAAI,UAAU,aAAa,IAAI,EAAE;;AAGpD,MAAI,CAAC,MAAM,QAAQ,QAAQ,CACzB,WAAU,CAAC,QAAkB;AAG/B,OAAK,IAAI,UAAU,cAAc,CAC/B,GAAG,QAAQ,QAAO,WAAU,CAAC,OAAO,WAAW,GAAG,WAAW,GAAG,CAAC,EACjE,UAAU,YAAY,OAAO,QAAQ,CACtC,CAAC;AAEF,SAAO,QAAQ,SAAS;;;CAI1B,SAAS,KAAa,YAA2B;AAC/C,OAAK,IAAI,SAAS,cAAc,KAAK,IAAI;;;CAI3C,SAAS,MAAW,YAA2B;AAC7C,OAAK,IAAI,OAAO,cAAc,IAAI;AAClC,OAAK,IAAI,KAAK,KAAK;;;CAIrB,WAAiB;AACf,OAAK,IAAI,OAAO,IAAI;;;CAItB,sBAA4B;AAC1B,OAAK,IAAI,OAAO,IAAI;;;CAItB,YAAkB;AAChB,OAAK,IAAI,OAAO,IAAI;;;CAItB,mBAAyB;AACvB,OAAK,IAAI,OAAO,IAAI;;;CAItB,aAAmB;AACjB,OAAK,IAAI,UACP,iBACA,0DACD;AACD,OAAK,IAAI,UAAU,UAAU,WAAW;AACxC,OAAK,IAAI,UAAU,WAAW,IAAI;;;CAIpC,OAAY;AACV,OAAK,IAAI,KAAK"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monocloud/auth-nextjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "MonoCloud Next.js Authentication SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"monocloud",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"cookie": "1.1.1",
|
|
59
59
|
"swr": "2.4.0",
|
|
60
|
-
"@monocloud/auth-node-core": "0.1.
|
|
60
|
+
"@monocloud/auth-node-core": "0.1.12",
|
|
61
61
|
"@monocloud/auth-core": "0.1.8"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|