@frontegg/nextjs 6.7.3-alpha.3418147203 → 6.7.3-alpha.3438888046
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/FronteggProvider.d.ts +0 -7
- package/FronteggProviderNoSSR.d.ts +6 -0
- package/helpers.d.ts +1 -1
- package/index.cjs.js +415 -125
- package/index.d.ts +1 -0
- package/index.esm.js +415 -126
- package/package.json +3 -3
- package/session.d.ts +1 -0
- package/types.d.ts +1 -0
package/FronteggProvider.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { FronteggAppOptions } from '@frontegg/types';
|
|
3
|
-
import { NextRouter } from 'next/router';
|
|
4
3
|
import { FronteggNextJSSession } from './types';
|
|
5
4
|
export declare type FronteggProviderProps = Omit<FronteggAppOptions, 'contextOptions'> & {
|
|
6
5
|
children?: ReactNode;
|
|
@@ -10,10 +9,4 @@ export declare type FronteggProviderProps = Omit<FronteggAppOptions, 'contextOpt
|
|
|
10
9
|
envClientId: string;
|
|
11
10
|
contextOptions?: Omit<FronteggAppOptions['contextOptions'], 'baseUrl'>;
|
|
12
11
|
};
|
|
13
|
-
declare type ConnectorProps = FronteggProviderProps & {
|
|
14
|
-
router: NextRouter;
|
|
15
|
-
appName?: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const Connector: FC<ConnectorProps>;
|
|
18
12
|
export declare const FronteggProvider: FC<FronteggProviderProps>;
|
|
19
|
-
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { FronteggAppOptions } from '@frontegg/types';
|
|
3
|
+
export declare type FronteggProviderNoSSRProps = FronteggAppOptions & {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare const FronteggProviderNoSSR: FC<FronteggProviderNoSSRProps>;
|
package/helpers.d.ts
CHANGED
|
@@ -19,6 +19,6 @@ export declare function addToCookies(newCookies: string[], res: ServerResponse):
|
|
|
19
19
|
export declare function removeCookies(cookieName: string, isSecured: boolean, cookieDomain: string, res: ServerResponse): void;
|
|
20
20
|
export declare function compress(input: string): Promise<string>;
|
|
21
21
|
export declare function uncompress(input: string): Promise<string>;
|
|
22
|
-
export declare function createSessionFromAccessToken(output: string): Promise<[string, any] | []>;
|
|
22
|
+
export declare function createSessionFromAccessToken(output: string): Promise<[string, any, string] | []>;
|
|
23
23
|
export declare const modifySetCookieIfUnsecure: (setCookieValue: string[] | undefined, isSecured: boolean) => string[] | undefined;
|
|
24
24
|
export {};
|