@draftlab/auth 0.0.1 → 0.0.2
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/client.d.ts +2 -2
- package/dist/{code-l_uvMR1j.d.ts → code-DJxdFR7p.d.ts} +1 -1
- package/dist/{core-8WTqfnb4.d.ts → core-BZHEAefX.d.ts} +4 -4
- package/dist/{core-CncE5rPg.js → core-CDM5o4rs.js} +3 -3
- package/dist/core.d.ts +4 -4
- package/dist/core.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/{oauth2-DtKwtl8p.d.ts → oauth2-CXHukHf2.d.ts} +1 -1
- package/dist/{password-Cm0dRMwa.d.ts → password-C4KLmO0O.d.ts} +1 -1
- package/dist/provider/code.d.ts +2 -2
- package/dist/provider/facebook.d.ts +2 -2
- package/dist/provider/github.d.ts +2 -2
- package/dist/provider/google.d.ts +2 -2
- package/dist/provider/oauth2.d.ts +2 -2
- package/dist/provider/password.d.ts +2 -2
- package/dist/provider/provider.d.ts +1 -1
- package/dist/{provider-CwWMG-1l.d.ts → provider-tndlqCzp.d.ts} +2 -2
- package/dist/{subject-DiQdRWGt.d.ts → subject-DMIMVtaT.d.ts} +1 -1
- package/dist/subject.d.ts +2 -2
- package/dist/ui/code.d.ts +2 -2
- package/dist/ui/password.d.ts +2 -2
- package/dist/{util-ChlgVqPN.d.ts → util-DbSKG1Xm.d.ts} +1 -1
- package/dist/util.d.ts +1 -1
- package/package.json +19 -8
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InvalidAccessTokenError, InvalidAuthorizationCodeError, InvalidRefreshTokenError, InvalidSubjectError } from "./error-CWAdNAzm.js";
|
|
2
|
-
import "./util-
|
|
3
|
-
import { SubjectSchema } from "./subject-
|
|
2
|
+
import "./util-DbSKG1Xm.js";
|
|
3
|
+
import { SubjectSchema } from "./subject-DMIMVtaT.js";
|
|
4
4
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
|
|
6
6
|
//#region src/client.d.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AllowCheckInput } from "./allow-CixonwTW.js";
|
|
2
2
|
import { UnknownStateError } from "./error-CWAdNAzm.js";
|
|
3
|
-
import { Prettify } from "./util-
|
|
4
|
-
import { SubjectPayload, SubjectSchema } from "./subject-
|
|
3
|
+
import { Prettify } from "./util-DbSKG1Xm.js";
|
|
4
|
+
import { SubjectPayload, SubjectSchema } from "./subject-DMIMVtaT.js";
|
|
5
5
|
import { StorageAdapter } from "./storage-CxKerLlc.js";
|
|
6
|
-
import { Provider } from "./provider-
|
|
6
|
+
import { Provider } from "./provider-tndlqCzp.js";
|
|
7
7
|
import { Theme } from "./theme-C9by7VXf.js";
|
|
8
|
-
import { Router } from "@draftlab/router";
|
|
8
|
+
import { Router } from "@draftlab/auth-router";
|
|
9
9
|
|
|
10
10
|
//#region src/core.d.ts
|
|
11
11
|
|
|
@@ -8,9 +8,9 @@ import { encryptionKeys, signingKeys } from "./keys-EEfxEGfO.js";
|
|
|
8
8
|
import { setTheme } from "./theme-CswaLtbW.js";
|
|
9
9
|
import { Select } from "./select-BjySLL8I.js";
|
|
10
10
|
import { CompactEncrypt, SignJWT, compactDecrypt } from "jose";
|
|
11
|
-
import { Router } from "@draftlab/router";
|
|
12
|
-
import { deleteCookie, getCookie, setCookie } from "@draftlab/router/cookies";
|
|
13
|
-
import { cors } from "@draftlab/router/middleware/cors";
|
|
11
|
+
import { Router } from "@draftlab/auth-router";
|
|
12
|
+
import { deleteCookie, getCookie, setCookie } from "@draftlab/auth-router/cookies";
|
|
13
|
+
import { cors } from "@draftlab/auth-router/middleware/cors";
|
|
14
14
|
|
|
15
15
|
//#region src/core.ts
|
|
16
16
|
/**
|
package/dist/core.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./allow-CixonwTW.js";
|
|
2
2
|
import "./error-CWAdNAzm.js";
|
|
3
|
-
import "./util-
|
|
4
|
-
import "./subject-
|
|
3
|
+
import "./util-DbSKG1Xm.js";
|
|
4
|
+
import "./subject-DMIMVtaT.js";
|
|
5
5
|
import "./storage-CxKerLlc.js";
|
|
6
|
-
import "./provider-
|
|
6
|
+
import "./provider-tndlqCzp.js";
|
|
7
7
|
import "./theme-C9by7VXf.js";
|
|
8
|
-
import { AuthorizationState, OnSuccessResponder, issuer } from "./core-
|
|
8
|
+
import { AuthorizationState, OnSuccessResponder, issuer } from "./core-BZHEAefX.js";
|
|
9
9
|
export { AuthorizationState, OnSuccessResponder, issuer };
|
package/dist/core.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./allow-CixonwTW.js";
|
|
2
2
|
import "./error-CWAdNAzm.js";
|
|
3
|
-
import "./util-
|
|
4
|
-
import "./subject-
|
|
3
|
+
import "./util-DbSKG1Xm.js";
|
|
4
|
+
import "./subject-DMIMVtaT.js";
|
|
5
5
|
import "./storage-CxKerLlc.js";
|
|
6
|
-
import "./provider-
|
|
6
|
+
import "./provider-tndlqCzp.js";
|
|
7
7
|
import "./theme-C9by7VXf.js";
|
|
8
|
-
import { issuer } from "./core-
|
|
8
|
+
import { issuer } from "./core-BZHEAefX.js";
|
|
9
9
|
export { issuer };
|
package/dist/index.js
CHANGED
package/dist/provider/code.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../storage-CxKerLlc.js";
|
|
2
|
-
import "../provider-
|
|
3
|
-
import { CodeProvider, CodeProviderConfig, CodeProviderError, CodeProviderOptions, CodeProviderState, CodeUserData } from "../code-
|
|
2
|
+
import "../provider-tndlqCzp.js";
|
|
3
|
+
import { CodeProvider, CodeProviderConfig, CodeProviderError, CodeProviderOptions, CodeProviderState, CodeUserData } from "../code-DJxdFR7p.js";
|
|
4
4
|
export { CodeProvider, CodeProviderConfig, CodeProviderError, CodeProviderOptions, CodeProviderState, CodeUserData };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../storage-CxKerLlc.js";
|
|
2
|
-
import { Provider } from "../provider-
|
|
3
|
-
import { Oauth2UserData, Oauth2WrappedConfig } from "../oauth2-
|
|
2
|
+
import { Provider } from "../provider-tndlqCzp.js";
|
|
3
|
+
import { Oauth2UserData, Oauth2WrappedConfig } from "../oauth2-CXHukHf2.js";
|
|
4
4
|
|
|
5
5
|
//#region src/provider/facebook.d.ts
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../storage-CxKerLlc.js";
|
|
2
|
-
import { Provider } from "../provider-
|
|
3
|
-
import { Oauth2UserData, Oauth2WrappedConfig } from "../oauth2-
|
|
2
|
+
import { Provider } from "../provider-tndlqCzp.js";
|
|
3
|
+
import { Oauth2UserData, Oauth2WrappedConfig } from "../oauth2-CXHukHf2.js";
|
|
4
4
|
|
|
5
5
|
//#region src/provider/github.d.ts
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../storage-CxKerLlc.js";
|
|
2
|
-
import { Provider } from "../provider-
|
|
3
|
-
import { Oauth2UserData, Oauth2WrappedConfig } from "../oauth2-
|
|
2
|
+
import { Provider } from "../provider-tndlqCzp.js";
|
|
3
|
+
import { Oauth2UserData, Oauth2WrappedConfig } from "../oauth2-CXHukHf2.js";
|
|
4
4
|
|
|
5
5
|
//#region src/provider/google.d.ts
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../storage-CxKerLlc.js";
|
|
2
|
-
import "../provider-
|
|
3
|
-
import { Oauth2Config, Oauth2Provider, Oauth2Token, Oauth2UserData, Oauth2WrappedConfig } from "../oauth2-
|
|
2
|
+
import "../provider-tndlqCzp.js";
|
|
3
|
+
import { Oauth2Config, Oauth2Provider, Oauth2Token, Oauth2UserData, Oauth2WrappedConfig } from "../oauth2-CXHukHf2.js";
|
|
4
4
|
export { Oauth2Config, Oauth2Provider, Oauth2Token, Oauth2UserData, Oauth2WrappedConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../storage-CxKerLlc.js";
|
|
2
|
-
import "../provider-
|
|
3
|
-
import { PBKDF2Hasher, PasswordChangeError, PasswordChangeState, PasswordConfig, PasswordHasher, PasswordLoginError, PasswordProvider, PasswordRegisterError, PasswordRegisterState, PasswordUserData, ScryptHasher } from "../password-
|
|
2
|
+
import "../provider-tndlqCzp.js";
|
|
3
|
+
import { PBKDF2Hasher, PasswordChangeError, PasswordChangeState, PasswordConfig, PasswordHasher, PasswordLoginError, PasswordProvider, PasswordRegisterError, PasswordRegisterState, PasswordUserData, ScryptHasher } from "../password-C4KLmO0O.js";
|
|
4
4
|
export { PBKDF2Hasher, PasswordChangeError, PasswordChangeState, PasswordConfig, PasswordHasher, PasswordLoginError, PasswordProvider, PasswordRegisterError, PasswordRegisterState, PasswordUserData, ScryptHasher };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../storage-CxKerLlc.js";
|
|
2
|
-
import { Provider, ProviderError, ProviderOptions, ProviderRoute, ProviderUnknownError } from "../provider-
|
|
2
|
+
import { Provider, ProviderError, ProviderOptions, ProviderRoute, ProviderUnknownError } from "../provider-tndlqCzp.js";
|
|
3
3
|
export { Provider, ProviderError, ProviderOptions, ProviderRoute, ProviderUnknownError };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StorageAdapter } from "./storage-CxKerLlc.js";
|
|
2
|
-
import { Router } from "@draftlab/router";
|
|
3
|
-
import { RouterContext } from "@draftlab/router/types";
|
|
2
|
+
import { Router } from "@draftlab/auth-router";
|
|
3
|
+
import { RouterContext } from "@draftlab/auth-router/types";
|
|
4
4
|
|
|
5
5
|
//#region src/provider/provider.d.ts
|
|
6
6
|
|
package/dist/subject.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./util-
|
|
2
|
-
import { SubjectPayload, SubjectSchema, createSubjects } from "./subject-
|
|
1
|
+
import "./util-DbSKG1Xm.js";
|
|
2
|
+
import { SubjectPayload, SubjectSchema, createSubjects } from "./subject-DMIMVtaT.js";
|
|
3
3
|
export { SubjectPayload, SubjectSchema, createSubjects };
|
package/dist/ui/code.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../storage-CxKerLlc.js";
|
|
2
|
-
import "../provider-
|
|
3
|
-
import { CodeProviderError, CodeProviderOptions } from "../code-
|
|
2
|
+
import "../provider-tndlqCzp.js";
|
|
3
|
+
import { CodeProviderError, CodeProviderOptions } from "../code-DJxdFR7p.js";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/code.d.ts
|
|
6
6
|
|
package/dist/ui/password.d.ts
CHANGED
package/dist/util.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Prettify, getRelativeUrl, isDomainMatch, lazy } from "./util-
|
|
1
|
+
import { Prettify, getRelativeUrl, isDomainMatch, lazy } from "./util-DbSKG1Xm.js";
|
|
2
2
|
export { Prettify, getRelativeUrl, isDomainMatch, lazy };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftlab/auth",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Core implementation",
|
|
5
|
+
"description": "Core implementation for @draftlab/auth",
|
|
6
6
|
"author": "Matheus Pergoli",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"typings": "dist/index.d.ts",
|
|
@@ -17,19 +17,24 @@
|
|
|
17
17
|
"./*": {
|
|
18
18
|
"import": "./dist/*.js",
|
|
19
19
|
"types": "./dist/*.d.ts"
|
|
20
|
-
},
|
|
21
|
-
"./ui": {
|
|
22
|
-
"import": "./dist/ui/index.js",
|
|
23
|
-
"types": "./dist/ui/index.d.ts"
|
|
24
20
|
}
|
|
25
21
|
},
|
|
22
|
+
"sideEffects": false,
|
|
26
23
|
"repository": {
|
|
27
24
|
"type": "git",
|
|
28
|
-
"url": "
|
|
25
|
+
"url": "https://github.com/Draft-Lab/auth.git"
|
|
29
26
|
},
|
|
30
27
|
"bugs": {
|
|
31
28
|
"url": "https://github.com/Draft-Lab/auth/issues"
|
|
32
29
|
},
|
|
30
|
+
"homepage": "https://github.com/Draft-Lab/auth",
|
|
31
|
+
"keywords": [
|
|
32
|
+
"auth",
|
|
33
|
+
"oauth",
|
|
34
|
+
"authentication",
|
|
35
|
+
"draftlab",
|
|
36
|
+
"typescript"
|
|
37
|
+
],
|
|
33
38
|
"license": "MIT",
|
|
34
39
|
"devDependencies": {
|
|
35
40
|
"@changesets/cli": "^2.29.5",
|
|
@@ -53,7 +58,13 @@
|
|
|
53
58
|
"dependencies": {
|
|
54
59
|
"@standard-schema/spec": "^1.0.0",
|
|
55
60
|
"jose": "^6.0.11",
|
|
56
|
-
"@draftlab/router": "0.1
|
|
61
|
+
"@draftlab/auth-router": "0.0.1"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=18"
|
|
65
|
+
},
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"access": "public"
|
|
57
68
|
},
|
|
58
69
|
"scripts": {
|
|
59
70
|
"build": "tsdown",
|