@absolutejs/auth 0.6.0 → 0.7.1
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 +8 -1
- package/dist/src/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1985,7 +1985,6 @@ var status = ({
|
|
|
1985
1985
|
headers: { "Content-Type": "application/json" }
|
|
1986
1986
|
});
|
|
1987
1987
|
});
|
|
1988
|
-
|
|
1989
1988
|
// src/utils.ts
|
|
1990
1989
|
var instantiateUserSession = async ({
|
|
1991
1990
|
user_session_id,
|
|
@@ -2054,6 +2053,14 @@ var absoluteAuth = ({
|
|
|
2054
2053
|
})).use(protectRoute()).as("plugin");
|
|
2055
2054
|
};
|
|
2056
2055
|
export {
|
|
2056
|
+
providerOptions,
|
|
2057
|
+
isValidProviderOption,
|
|
2058
|
+
isRevocableProviderOption,
|
|
2059
|
+
isRevocableOAuth2Client,
|
|
2060
|
+
isRefreshableProviderOption,
|
|
2061
|
+
isRefreshableOAuth2Client,
|
|
2062
|
+
isPKCEProviderOption,
|
|
2063
|
+
isOIDCProviderOption,
|
|
2057
2064
|
instantiateUserSession,
|
|
2058
2065
|
createProvidersConfiguration,
|
|
2059
2066
|
createAuthConfiguration,
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OAuth2TokenResponse, OAuth2Client, ProviderOption, PKCEProvider, OIDCProvider, RefreshableProvider, RevocableProvider, ScopeRequiredProvider, CredentialsFor, providerOptions, isValidProviderOption, isRefreshableOAuth2Client, isRefreshableProviderOption, isOIDCProviderOption, isPKCEProviderOption, isRevocableProviderOption, isRevocableOAuth2Client } from 'citra';
|
|
1
2
|
import { Elysia } from 'elysia';
|
|
2
3
|
import { AbsoluteAuthProps } from './types';
|
|
3
4
|
export declare const absoluteAuth: <UserType>({ providersConfiguration, authorizeRoute, callbackRoute, profileRoute, signoutRoute, statusRoute, refreshRoute, revokeRoute, onAuthorize, onProfile, onCallback, onStatus, onRefresh, onSignOut, onRevocation }: AbsoluteAuthProps<UserType>) => Elysia<"", {
|
|
@@ -182,4 +183,7 @@ export declare const absoluteAuth: <UserType>({ providersConfiguration, authoriz
|
|
|
182
183
|
resolve: {};
|
|
183
184
|
schema: {};
|
|
184
185
|
}>;
|
|
186
|
+
export * from './types';
|
|
185
187
|
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 };
|
package/package.json
CHANGED