refactor: remove REST endpoint from SDK and admin config by rsbh · Pull Request #1529 · raystack/frontier · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions web/apps/admin/src/configs/frontier.tsx
1 change: 0 additions & 1 deletion web/sdk/react/contexts/FrontierContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ interface FrontierContextProviderProps {
}

const defaultConfig: FrontierClientOptions = {
endpoint: 'http://localhost:8080',
redirectLogin: 'http://localhost:3000',
redirectSignup: 'http://localhost:3000/signup',
redirectMagicLinkVerify: 'http://localhost:3000/magiclink-verify',
Expand Down
1 change: 0 additions & 1 deletion web/sdk/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export interface FrontierClientCustomizationOptions {
}

export interface FrontierClientOptions {
endpoint: string;
locale?: string;
connectEndpoint?: string;
redirectSignup?: string;
Expand Down
17 changes: 0 additions & 17 deletions web/sdk/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { Feature, Plan } from '@raystack/proton/frontier';

export interface Strategy {
Expand Down Expand Up @@ -49,22 +48,6 @@ export interface Role {
types: string[];
}

export interface FrontierClientOptions {
endpoint?: string;
redirectSignup?: string;
redirectLogin?: string;
}

export interface InitialState {
sessionId?: string | null;
}

export interface FrontierProviderProps {
config: FrontierClientOptions;
children: React.ReactNode;
initialState?: InitialState;
}

export const IntervalLabelMap = {
daily: 'Daily',
month: 'Monthly',
Expand Down
1 change: 0 additions & 1 deletion web/turbo.json
Loading