Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Oct 23, 2024
1 parent f9e9969 commit 88596ba
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
20 changes: 16 additions & 4 deletions packages/api-security-auth0/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
export { createIdentityType } from "./createIdentityType";
export { createAuthenticator } from "./createAuthenticator";
export type { AuthenticatorConfig } from "./createAuthenticator";
export {
import {
createGroupsTeamsAuthorizer,
type GroupsTeamsAuthorizerConfig
} from "@webiny/api-security";

export { createIdentityType } from "./createIdentityType";
export { createAuthenticator } from "./createAuthenticator";
export type { AuthenticatorConfig } from "./createAuthenticator";
export { createAuth0 } from "./createAuth0";

export { createGroupsTeamsAuthorizer, GroupsTeamsAuthorizerConfig };

// Backwards compatibility.
// @deprecated Use `createGroupsTeamsAuthorizer` instead.
const createGroupAuthorizer = createGroupsTeamsAuthorizer;

// @deprecated Use `GroupsTeamsAuthorizerConfig` instead.
type GroupAuthorizerConfig = GroupsTeamsAuthorizerConfig;

export { createGroupAuthorizer, type GroupAuthorizerConfig };
20 changes: 16 additions & 4 deletions packages/api-security-okta/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
export { createIdentityType } from "./createIdentityType";
export { createAuthenticator } from "./createAuthenticator";
export type { AuthenticatorConfig } from "./createAuthenticator";
export {
import {
createGroupsTeamsAuthorizer,
type GroupsTeamsAuthorizerConfig
} from "@webiny/api-security";

export { createIdentityType } from "./createIdentityType";
export { createAuthenticator } from "./createAuthenticator";
export type { AuthenticatorConfig } from "./createAuthenticator";
export { createOkta } from "./createOkta";

export { createGroupsTeamsAuthorizer, GroupsTeamsAuthorizerConfig };

// Backwards compatibility.
// @deprecated Use `createGroupsTeamsAuthorizer` instead.
const createGroupAuthorizer = createGroupsTeamsAuthorizer;

// @deprecated Use `GroupsTeamsAuthorizerConfig` instead.
type GroupAuthorizerConfig = GroupsTeamsAuthorizerConfig;

export { createGroupAuthorizer, type GroupAuthorizerConfig };

0 comments on commit 88596ba

Please sign in to comment.