Comparing version 2.0.0 to 2.1.0
# lucia | ||
## 2.1.0 | ||
### Minor changes | ||
- [#911](https://github.com/pilcrowOnPaper/lucia/pull/911) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Allow `null` in `csrfProtection.allowedSubdomains` configuration array | ||
## 2.0.0 | ||
@@ -4,0 +10,0 @@ |
export declare const isAllowedUrl: (incomingUrl: string | URL, app: { | ||
url: string | URL; | ||
allowedSubdomains: "*" | string[]; | ||
allowedSubdomains: "*" | (string | null)[]; | ||
}) => boolean; |
@@ -18,2 +18,4 @@ export const isAllowedUrl = (incomingUrl, app) => { | ||
const allowedHosts = app.allowedSubdomains.map((subdomain) => { | ||
if (subdomain === null) | ||
return appBaseDomain; | ||
return [subdomain, appBaseDomain].join("."); | ||
@@ -20,0 +22,0 @@ }); |
{ | ||
"name": "lucia", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "A simple and flexible authentication library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
83823
1834