@absolutejs/auth 0.7.2 → 0.7.4
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.js +3 -14
- package/dist/src/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
// src/index.ts
|
|
3
|
-
import { Elysia as Elysia10 } from "elysia";
|
|
4
|
-
|
|
5
2
|
// node_modules/citra/dist/index.js
|
|
6
3
|
var NUM_GENERATOR_BYTES = 32;
|
|
7
4
|
var BASE64_BLOCK_SIZE = 4;
|
|
@@ -1567,6 +1564,9 @@ var createOAuth2Client = (providerName, config) => {
|
|
|
1567
1564
|
};
|
|
1568
1565
|
};
|
|
1569
1566
|
|
|
1567
|
+
// src/index.ts
|
|
1568
|
+
import { Elysia as Elysia10 } from "elysia";
|
|
1569
|
+
|
|
1570
1570
|
// src/authorize.ts
|
|
1571
1571
|
import { Elysia } from "elysia";
|
|
1572
1572
|
|
|
@@ -2053,7 +2053,6 @@ var absoluteAuth = ({
|
|
|
2053
2053
|
})).use(protectRoute()).as("plugin");
|
|
2054
2054
|
};
|
|
2055
2055
|
export {
|
|
2056
|
-
providers,
|
|
2057
2056
|
providerOptions,
|
|
2058
2057
|
isValidProviderOption,
|
|
2059
2058
|
isRevocableProviderOption,
|
|
@@ -2063,17 +2062,7 @@ export {
|
|
|
2063
2062
|
isPKCEProviderOption,
|
|
2064
2063
|
isOIDCProviderOption,
|
|
2065
2064
|
instantiateUserSession,
|
|
2066
|
-
hasClientSecret,
|
|
2067
|
-
generateState,
|
|
2068
|
-
generateCodeVerifier,
|
|
2069
|
-
encodeBase64,
|
|
2070
|
-
decodeJWT,
|
|
2071
|
-
decodeBase64,
|
|
2072
|
-
createS256CodeChallenge,
|
|
2073
2065
|
createProvidersConfiguration,
|
|
2074
|
-
createOAuth2Request,
|
|
2075
|
-
createOAuth2FetchError,
|
|
2076
|
-
createOAuth2Client,
|
|
2077
2066
|
createAuthConfiguration,
|
|
2078
2067
|
absoluteAuth
|
|
2079
2068
|
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -184,4 +184,5 @@ export declare const absoluteAuth: <UserType>({ providersConfiguration, authoriz
|
|
|
184
184
|
}>;
|
|
185
185
|
export * from './types';
|
|
186
186
|
export * from './utils';
|
|
187
|
-
export
|
|
187
|
+
export type { OAuth2TokenResponse, OAuth2Client, ProviderOption, PKCEProvider, OIDCProvider, RefreshableProvider, RevocableProvider, ScopeRequiredProvider, CredentialsFor } from 'citra';
|
|
188
|
+
export { providerOptions, isValidProviderOption, isRefreshableOAuth2Client, isRefreshableProviderOption, isOIDCProviderOption, isPKCEProviderOption, isRevocableProviderOption, isRevocableOAuth2Client } from 'citra';
|
package/package.json
CHANGED