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