@vunexa/lixa 0.0.1-alpha.10 → 0.0.1-alpha.12
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/export-types/providers.d.ts +61 -0
- package/dist/export-types/tsdoc-metadata.json +11 -0
- package/dist/providers/github.d.ts +4 -0
- package/dist/providers/github.d.ts.map +1 -1
- package/dist/providers/github.js +4 -0
- package/dist/providers/github.js.map +1 -1
- package/dist/providers/google.d.ts +4 -0
- package/dist/providers/google.d.ts.map +1 -1
- package/dist/providers/google.js +4 -0
- package/dist/providers/google.js.map +1 -1
- package/dist/providers-entry.d.ts +22 -0
- package/dist/providers-entry.d.ts.map +1 -0
- package/dist/providers-entry.js +22 -0
- package/dist/providers-entry.js.map +1 -0
- package/package.json +5 -5
- /package/{index.d.ts → dist/export-types/index.d.ts} +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in OAuth providers for Lixa
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Import and register these providers before using them in your Lixa configuration.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { Lixa } from '@vunexa/lixa';
|
|
10
|
+
* import { GoogleProvider, GithubProvider } from '@vunexa/lixa/providers';
|
|
11
|
+
*
|
|
12
|
+
* // Register the providers you want to use
|
|
13
|
+
* Lixa.registerProvider({
|
|
14
|
+
* google: new GoogleProvider(),
|
|
15
|
+
* github: new GithubProvider(),
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @packageDocumentation
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* GitHub OAuth provider implementation
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare class GithubProvider implements IProvider {
|
|
27
|
+
providerType: string;
|
|
28
|
+
authorizationEndpoint: string;
|
|
29
|
+
tokenEndpoint: string;
|
|
30
|
+
userInfoEndpoint: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Google OAuth provider implementation
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export declare class GoogleProvider implements IProvider {
|
|
38
|
+
providerType: string;
|
|
39
|
+
authorizationEndpoint: string;
|
|
40
|
+
tokenEndpoint: string;
|
|
41
|
+
userInfoEndpoint: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Interface for OAuth provider implementations.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* Implement this interface to add support for custom OAuth providers.
|
|
49
|
+
*
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export declare interface IProvider {
|
|
53
|
+
/** The OAuth authorization endpoint URL */
|
|
54
|
+
authorizationEndpoint: string;
|
|
55
|
+
/** The OAuth token exchange endpoint URL */
|
|
56
|
+
tokenEndpoint: string;
|
|
57
|
+
/** The user information endpoint URL */
|
|
58
|
+
userInfoEndpoint: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.52.11"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../src/providers/github.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,cAAe,YAAW,SAAS;IACvC,YAAY,SAAY;IACxB,qBAAqB,SAA8C;IACnE,aAAa,SAAiD;IAC9D,gBAAgB,SAAiC;CAClD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../src/providers/github.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,cAAM,cAAe,YAAW,SAAS;IACvC,YAAY,SAAY;IACxB,qBAAqB,SAA8C;IACnE,aAAa,SAAiD;IAC9D,gBAAgB,SAAiC;CAClD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/providers/github.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.js","sourceRoot":"","sources":["../../src/providers/github.ts"],"names":[],"mappings":"AAEA,MAAM,cAAc;IAClB,YAAY,GAAG,QAAQ,CAAC;IACxB,qBAAqB,GAAG,0CAA0C,CAAC;IACnE,aAAa,GAAG,6CAA6C,CAAC;IAC9D,gBAAgB,GAAG,6BAA6B,CAAC;CAClD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"github.js","sourceRoot":"","sources":["../../src/providers/github.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,cAAc;IAClB,YAAY,GAAG,QAAQ,CAAC;IACxB,qBAAqB,GAAG,0CAA0C,CAAC;IACnE,aAAa,GAAG,6CAA6C,CAAC;IAC9D,gBAAgB,GAAG,6BAA6B,CAAC;CAClD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../src/providers/google.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,cAAe,YAAW,SAAS;IACvC,YAAY,SAAY;IACxB,qBAAqB,SAAkD;IACvE,aAAa,SAAyC;IACtD,gBAAgB,SAAmD;CACpE;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../src/providers/google.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,cAAM,cAAe,YAAW,SAAS;IACvC,YAAY,SAAY;IACxB,qBAAqB,SAAkD;IACvE,aAAa,SAAyC;IACtD,gBAAgB,SAAmD;CACpE;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/providers/google.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.js","sourceRoot":"","sources":["../../src/providers/google.ts"],"names":[],"mappings":"AAEA,MAAM,cAAc;IAClB,YAAY,GAAG,QAAQ,CAAC;IACxB,qBAAqB,GAAG,8CAA8C,CAAC;IACvE,aAAa,GAAG,qCAAqC,CAAC;IACtD,gBAAgB,GAAG,+CAA+C,CAAC;CACpE;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"google.js","sourceRoot":"","sources":["../../src/providers/google.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,cAAc;IAClB,YAAY,GAAG,QAAQ,CAAC;IACxB,qBAAqB,GAAG,8CAA8C,CAAC;IACvE,aAAa,GAAG,qCAAqC,CAAC;IACtD,gBAAgB,GAAG,+CAA+C,CAAC;CACpE;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in OAuth providers for Lixa
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Import and register these providers before using them in your Lixa configuration.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { Lixa } from '@vunexa/lixa';
|
|
10
|
+
* import { GoogleProvider, GithubProvider } from '@vunexa/lixa/providers';
|
|
11
|
+
*
|
|
12
|
+
* // Register the providers you want to use
|
|
13
|
+
* Lixa.registerProvider({
|
|
14
|
+
* google: new GoogleProvider(),
|
|
15
|
+
* github: new GithubProvider(),
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @packageDocumentation
|
|
20
|
+
*/
|
|
21
|
+
export { GoogleProvider, GithubProvider, type IProvider } from "./providers";
|
|
22
|
+
//# sourceMappingURL=providers-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers-entry.d.ts","sourceRoot":"","sources":["../src/providers-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in OAuth providers for Lixa
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Import and register these providers before using them in your Lixa configuration.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { Lixa } from '@vunexa/lixa';
|
|
10
|
+
* import { GoogleProvider, GithubProvider } from '@vunexa/lixa/providers';
|
|
11
|
+
*
|
|
12
|
+
* // Register the providers you want to use
|
|
13
|
+
* Lixa.registerProvider({
|
|
14
|
+
* google: new GoogleProvider(),
|
|
15
|
+
* github: new GithubProvider(),
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @packageDocumentation
|
|
20
|
+
*/
|
|
21
|
+
export { GoogleProvider, GithubProvider } from "./providers";
|
|
22
|
+
//# sourceMappingURL=providers-entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers-entry.js","sourceRoot":"","sources":["../src/providers-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAkB,MAAM,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vunexa/lixa",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.12",
|
|
4
4
|
"description": "Lixa is a flexible, provider-agnostic OAuth and OpenID Connect (OIDC) client library that simplifies multi-provider authentication flows. It supports seamless integration with providers like Google and GitHub, offers extensible session management, and enables dynamic provider resolution based on callback URLs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oauth",
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"types": "index.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"types": "./index.d.ts",
|
|
16
|
+
"types": "./dist/export-types/index.d.ts",
|
|
17
17
|
"import": "./dist/index.js"
|
|
18
18
|
},
|
|
19
19
|
"./providers": {
|
|
20
|
-
"types": "./providers.d.ts",
|
|
21
|
-
"import": "./dist/providers.js"
|
|
20
|
+
"types": "./dist/export-types/providers.d.ts",
|
|
21
|
+
"import": "./dist/providers-entry.js"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"build": "tsc && npm run test && api-extractor run --local",
|
|
25
|
+
"build": "tsc && npm run test && api-extractor run --local && api-extractor run --local --config api-extractor-providers.json",
|
|
26
26
|
"clean": "rm -rf dist",
|
|
27
27
|
"prepublishOnly": "npm run clean && npm run build",
|
|
28
28
|
"lint": "eslint src/**/*.ts",
|
|
File without changes
|