@asgardeo/nextjs 0.0.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/LICENSE +201 -0
- package/README.md +87 -0
- package/dist/AsgardeoNextClient.d.ts +40 -0
- package/dist/AsgardeoNextClient.js +138 -0
- package/dist/AsgardeoNextClient.js.map +1 -0
- package/dist/cjs/index.js +67 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/client/components/actions/SignInButton.d.ts +41 -0
- package/dist/client/components/actions/SignInButton.js +42 -0
- package/dist/client/components/actions/SignInButton.js.map +1 -0
- package/dist/client/components/actions/SignOutButton.d.ts +41 -0
- package/dist/client/components/actions/SignOutButton.js +42 -0
- package/dist/client/components/actions/SignOutButton.js.map +1 -0
- package/dist/client/components/actions/SignUpButton.d.ts +41 -0
- package/dist/client/components/actions/SignUpButton.js +42 -0
- package/dist/client/components/actions/SignUpButton.js.map +1 -0
- package/dist/client/components/control/SignedIn.d.ts +45 -0
- package/dist/client/components/control/SignedIn.js +56 -0
- package/dist/client/components/control/SignedIn.js.map +1 -0
- package/dist/client/components/control/SignedOut.d.ts +45 -0
- package/dist/client/components/control/SignedOut.js +56 -0
- package/dist/client/components/control/SignedOut.js.map +1 -0
- package/dist/client/contexts/AsgardeoContext.d.ts +28 -0
- package/dist/client/contexts/AsgardeoContext.js +26 -0
- package/dist/client/contexts/AsgardeoContext.js.map +1 -0
- package/dist/client/hooks/useAsgardeo.d.ts +20 -0
- package/dist/client/hooks/useAsgardeo.js +29 -0
- package/dist/client/hooks/useAsgardeo.js.map +1 -0
- package/dist/client/providers/AsgardeoProvider.d.ts +24 -0
- package/dist/client/providers/AsgardeoProvider.js +23 -0
- package/dist/client/providers/AsgardeoProvider.js.map +1 -0
- package/dist/configs/InternalAuthAPIRoutesConfig.d.ts +20 -0
- package/dist/configs/InternalAuthAPIRoutesConfig.js +25 -0
- package/dist/configs/InternalAuthAPIRoutesConfig.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/models/api.d.ts +43 -0
- package/dist/models/api.js +19 -0
- package/dist/models/api.js.map +1 -0
- package/dist/models/config.d.ts +30 -0
- package/dist/models/config.js +19 -0
- package/dist/models/config.js.map +1 -0
- package/dist/server/AsgardeoProvider.d.ts +40 -0
- package/dist/server/AsgardeoProvider.js +20 -0
- package/dist/server/AsgardeoProvider.js.map +1 -0
- package/dist/server/actions/deleteSessionId.d.ts +19 -0
- package/dist/server/actions/deleteSessionId.js +26 -0
- package/dist/server/actions/deleteSessionId.js.map +1 -0
- package/dist/server/actions/getSessionId.d.ts +19 -0
- package/dist/server/actions/getSessionId.js +26 -0
- package/dist/server/actions/getSessionId.js.map +1 -0
- package/dist/server/actions/isSignedIn.d.ts +19 -0
- package/dist/server/actions/isSignedIn.js +26 -0
- package/dist/server/actions/isSignedIn.js.map +1 -0
- package/dist/server/actions/setSessionId.d.ts +19 -0
- package/dist/server/actions/setSessionId.js +43 -0
- package/dist/server/actions/setSessionId.js.map +1 -0
- package/dist/utils/decorateConfigWithNextEnv.d.ts +20 -0
- package/dist/utils/decorateConfigWithNextEnv.js +28 -0
- package/dist/utils/decorateConfigWithNextEnv.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FC, HTMLAttributes, PropsWithChildren } from 'react';
|
|
19
|
+
/**
|
|
20
|
+
* Interface for SignInButton component props.
|
|
21
|
+
*/
|
|
22
|
+
export type SignOutButtonProps = HTMLAttributes<HTMLButtonElement>;
|
|
23
|
+
/**
|
|
24
|
+
* SignInButton component. This button initiates the sign-in process when clicked.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* import { SignInButton } from '@asgardeo/auth-react';
|
|
29
|
+
*
|
|
30
|
+
* const App = () => {
|
|
31
|
+
* const buttonRef = useRef<HTMLButtonElement>(null);
|
|
32
|
+
* return (
|
|
33
|
+
* <SignInButton ref={buttonRef} className="custom-class" style={{ backgroundColor: 'blue' }}>
|
|
34
|
+
* Sign In
|
|
35
|
+
* </SignInButton>
|
|
36
|
+
* );
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
declare const SignOutButton: FC<PropsWithChildren<SignOutButtonProps>>;
|
|
41
|
+
export default SignOutButton;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
'use client';
|
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
import { forwardRef } from 'react';
|
|
21
|
+
import InternalAuthAPIRoutesConfig from '../../../configs/InternalAuthAPIRoutesConfig';
|
|
22
|
+
import { BaseSignOutButton } from '@asgardeo/react';
|
|
23
|
+
/**
|
|
24
|
+
* SignInButton component. This button initiates the sign-in process when clicked.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* import { SignInButton } from '@asgardeo/auth-react';
|
|
29
|
+
*
|
|
30
|
+
* const App = () => {
|
|
31
|
+
* const buttonRef = useRef<HTMLButtonElement>(null);
|
|
32
|
+
* return (
|
|
33
|
+
* <SignInButton ref={buttonRef} className="custom-class" style={{ backgroundColor: 'blue' }}>
|
|
34
|
+
* Sign In
|
|
35
|
+
* </SignInButton>
|
|
36
|
+
* );
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
const SignOutButton = forwardRef(({ children = 'Sign Out', className, style, ...rest }, ref) => (_jsx("form", { action: InternalAuthAPIRoutesConfig.signOut, children: _jsx(BaseSignOutButton, { className: className, style: style, ref: ref, type: "submit", ...rest, children: children }) })));
|
|
41
|
+
export default SignOutButton;
|
|
42
|
+
//# sourceMappingURL=SignOutButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignOutButton.js","sourceRoot":"","sources":["../../../../src/client/components/actions/SignOutButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,CAAC;;AAEb,OAAO,EAAK,UAAU,EAAuD,MAAM,OAAO,CAAC;AAC3F,OAAO,2BAA2B,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAOlD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,aAAa,GAA8C,UAAU,CAIzE,CACE,EAAC,QAAQ,GAAG,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAwC,EACzF,GAA2B,EACb,EAAE,CAAC,CACjB,eAAM,MAAM,EAAE,2BAA2B,CAAC,OAAO,YAC/C,KAAC,iBAAiB,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,QAAQ,KAAK,IAAI,YACpF,QAAQ,GACS,GACf,CACR,CACF,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FC, HTMLAttributes, PropsWithChildren } from 'react';
|
|
19
|
+
/**
|
|
20
|
+
* Interface for SignInButton component props.
|
|
21
|
+
*/
|
|
22
|
+
export type SignUpButtonProps = HTMLAttributes<HTMLButtonElement>;
|
|
23
|
+
/**
|
|
24
|
+
* SignInButton component. This button initiates the sign-in process when clicked.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* import { SignInButton } from '@asgardeo/auth-react';
|
|
29
|
+
*
|
|
30
|
+
* const App = () => {
|
|
31
|
+
* const buttonRef = useRef<HTMLButtonElement>(null);
|
|
32
|
+
* return (
|
|
33
|
+
* <SignInButton ref={buttonRef} className="custom-class" style={{ backgroundColor: 'blue' }}>
|
|
34
|
+
* Sign In
|
|
35
|
+
* </SignInButton>
|
|
36
|
+
* );
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
declare const SignUpButton: FC<PropsWithChildren<SignUpButtonProps>>;
|
|
41
|
+
export default SignUpButton;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
'use client';
|
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
import { forwardRef } from 'react';
|
|
21
|
+
import InternalAuthAPIRoutesConfig from '../../../configs/InternalAuthAPIRoutesConfig';
|
|
22
|
+
import { BaseSignUpButton } from '@asgardeo/react';
|
|
23
|
+
/**
|
|
24
|
+
* SignInButton component. This button initiates the sign-in process when clicked.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```tsx
|
|
28
|
+
* import { SignInButton } from '@asgardeo/auth-react';
|
|
29
|
+
*
|
|
30
|
+
* const App = () => {
|
|
31
|
+
* const buttonRef = useRef<HTMLButtonElement>(null);
|
|
32
|
+
* return (
|
|
33
|
+
* <SignInButton ref={buttonRef} className="custom-class" style={{ backgroundColor: 'blue' }}>
|
|
34
|
+
* Sign In
|
|
35
|
+
* </SignInButton>
|
|
36
|
+
* );
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
const SignUpButton = forwardRef(({ children = 'Sign Up', className, style, ...rest }, ref) => (_jsx("form", { action: InternalAuthAPIRoutesConfig.signUp, children: _jsx(BaseSignUpButton, { className: className, style: style, ref: ref, type: "submit", ...rest, children: children }) })));
|
|
41
|
+
export default SignUpButton;
|
|
42
|
+
//# sourceMappingURL=SignUpButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignUpButton.js","sourceRoot":"","sources":["../../../../src/client/components/actions/SignUpButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,CAAC;;AAEb,OAAO,EAAK,UAAU,EAAuD,MAAM,OAAO,CAAC;AAC3F,OAAO,2BAA2B,MAAM,8CAA8C,CAAC;AACvF,OAAO,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAC;AAOjD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,YAAY,GAA6C,UAAU,CAIvE,CACE,EAAC,QAAQ,GAAG,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAuC,EACvF,GAA2B,EACb,EAAE,CAAC,CACjB,eAAM,MAAM,EAAE,2BAA2B,CAAC,MAAM,YAC9C,KAAC,gBAAgB,IAAC,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,QAAQ,KAAK,IAAI,YACnF,QAAQ,GACQ,GACd,CACR,CACF,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
19
|
+
/**
|
|
20
|
+
* Props interface of {@link SignedIn}
|
|
21
|
+
*/
|
|
22
|
+
export interface SignedInProps {
|
|
23
|
+
/**
|
|
24
|
+
* Content to show when the user is not signed in.
|
|
25
|
+
*/
|
|
26
|
+
fallback?: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A component that only renders its children when the user is signed in.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* import { SignedIn } from '@asgardeo/auth-next';
|
|
34
|
+
*
|
|
35
|
+
* const App = () => {
|
|
36
|
+
* return (
|
|
37
|
+
* <SignedIn fallback={<p>Please sign in to continue</p>}>
|
|
38
|
+
* <p>Welcome! You are signed in.</p>
|
|
39
|
+
* </SignedIn>
|
|
40
|
+
* );
|
|
41
|
+
* }
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
declare const SignedIn: FC<PropsWithChildren<SignedInProps>>;
|
|
45
|
+
export default SignedIn;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
'use client';
|
|
19
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
import { useEffect, useState } from 'react';
|
|
21
|
+
import isSignedIn from '../../../server/actions/isSignedIn';
|
|
22
|
+
/**
|
|
23
|
+
* A component that only renders its children when the user is signed in.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* import { SignedIn } from '@asgardeo/auth-next';
|
|
28
|
+
*
|
|
29
|
+
* const App = () => {
|
|
30
|
+
* return (
|
|
31
|
+
* <SignedIn fallback={<p>Please sign in to continue</p>}>
|
|
32
|
+
* <p>Welcome! You are signed in.</p>
|
|
33
|
+
* </SignedIn>
|
|
34
|
+
* );
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
const SignedIn = ({ children, fallback = null, }) => {
|
|
39
|
+
const [isSignedInSync, setIsSignedInSync] = useState(null);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
(async () => {
|
|
42
|
+
try {
|
|
43
|
+
const result = await isSignedIn();
|
|
44
|
+
setIsSignedInSync(result);
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
setIsSignedInSync(false);
|
|
48
|
+
}
|
|
49
|
+
})();
|
|
50
|
+
}, []);
|
|
51
|
+
if (isSignedInSync === null)
|
|
52
|
+
return null;
|
|
53
|
+
return _jsx(_Fragment, { children: isSignedInSync ? children : fallback });
|
|
54
|
+
};
|
|
55
|
+
export default SignedIn;
|
|
56
|
+
//# sourceMappingURL=SignedIn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignedIn.js","sourceRoot":"","sources":["../../../../src/client/components/control/SignedIn.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,CAAC;;AAEb,OAAO,EAAmC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC5E,OAAO,UAAU,MAAM,oCAAoC,CAAC;AAY5D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,QAAQ,GAAyC,CAAC,EACtD,QAAQ,EACR,QAAQ,GAAG,IAAI,GACkB,EAAE,EAAE;IACrC,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAiB,IAAI,CAAC,CAAC;IAE3E,SAAS,CAAC,GAAG,EAAE;QACb,CAAC,KAAK,IAAmB,EAAE;YACzB,IAAI,CAAC;gBACH,MAAM,MAAM,GAAY,MAAM,UAAU,EAAE,CAAC;gBAE3C,iBAAiB,CAAC,MAAM,CAAC,CAAC;YAC5B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC,EAAE,CAAC;IACP,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,cAAc,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAEzC,OAAO,4BAAG,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,GAAI,CAAC;AACrD,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FC, PropsWithChildren, ReactNode } from 'react';
|
|
19
|
+
/**
|
|
20
|
+
* Props interface of {@link SignedOut}
|
|
21
|
+
*/
|
|
22
|
+
export interface SignedOutProps {
|
|
23
|
+
/**
|
|
24
|
+
* Content to show when the user is not signed-out.
|
|
25
|
+
*/
|
|
26
|
+
fallback?: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A component that only renders its children when the user is signed out.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* import { SignedOut } from '@asgardeo/auth-next';
|
|
34
|
+
*
|
|
35
|
+
* const App = () => {
|
|
36
|
+
* return (
|
|
37
|
+
* <SignedOut fallback={<p>Please sign out to continue</p>}>
|
|
38
|
+
* <p>Welcome! You are signed out.</p>
|
|
39
|
+
* </SignedOut>
|
|
40
|
+
* );
|
|
41
|
+
* }
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
declare const SignedOut: FC<PropsWithChildren<SignedOutProps>>;
|
|
45
|
+
export default SignedOut;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
'use client';
|
|
19
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
import { useEffect, useState } from 'react';
|
|
21
|
+
import isSignedIn from '../../../server/actions/isSignedIn';
|
|
22
|
+
/**
|
|
23
|
+
* A component that only renders its children when the user is signed out.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* import { SignedOut } from '@asgardeo/auth-next';
|
|
28
|
+
*
|
|
29
|
+
* const App = () => {
|
|
30
|
+
* return (
|
|
31
|
+
* <SignedOut fallback={<p>Please sign out to continue</p>}>
|
|
32
|
+
* <p>Welcome! You are signed out.</p>
|
|
33
|
+
* </SignedOut>
|
|
34
|
+
* );
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
const SignedOut = ({ children, fallback = null, }) => {
|
|
39
|
+
const [isSignedInSync, setIsSignedInSync] = useState(null);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
(async () => {
|
|
42
|
+
try {
|
|
43
|
+
const result = await isSignedIn();
|
|
44
|
+
setIsSignedInSync(result);
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
setIsSignedInSync(false);
|
|
48
|
+
}
|
|
49
|
+
})();
|
|
50
|
+
}, []);
|
|
51
|
+
if (isSignedInSync === null)
|
|
52
|
+
return null;
|
|
53
|
+
return _jsx(_Fragment, { children: !isSignedInSync ? children : fallback });
|
|
54
|
+
};
|
|
55
|
+
export default SignedOut;
|
|
56
|
+
//# sourceMappingURL=SignedOut.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignedOut.js","sourceRoot":"","sources":["../../../../src/client/components/control/SignedOut.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,CAAC;;AAEb,OAAO,EAAmC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC5E,OAAO,UAAU,MAAM,oCAAoC,CAAC;AAY5D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,SAAS,GAA0C,CAAC,EACxD,QAAQ,EACR,QAAQ,GAAG,IAAI,GACmB,EAAE,EAAE;IACtC,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAiB,IAAI,CAAC,CAAC;IAE3E,SAAS,CAAC,GAAG,EAAE;QACb,CAAC,KAAK,IAAmB,EAAE;YACzB,IAAI,CAAC;gBACH,MAAM,MAAM,GAAY,MAAM,UAAU,EAAE,CAAC;gBAE3C,iBAAiB,CAAC,MAAM,CAAC,CAAC;YAC5B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC,EAAE,CAAC;IACP,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,cAAc,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAEzC,OAAO,4BAAG,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,GAAI,CAAC;AACtD,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { AsgardeoContextProps as AsgardeoReactContextProps } from '@asgardeo/react';
|
|
19
|
+
import { Context } from 'react';
|
|
20
|
+
/**
|
|
21
|
+
* Props interface of {@link AsgardeoContext}
|
|
22
|
+
*/
|
|
23
|
+
export type AsgardeoContextProps = Partial<AsgardeoReactContextProps>;
|
|
24
|
+
/**
|
|
25
|
+
* Context object for managing the Authentication flow builder core context.
|
|
26
|
+
*/
|
|
27
|
+
declare const AsgardeoContext: Context<AsgardeoContextProps | null>;
|
|
28
|
+
export default AsgardeoContext;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
'use client';
|
|
19
|
+
import { createContext } from 'react';
|
|
20
|
+
/**
|
|
21
|
+
* Context object for managing the Authentication flow builder core context.
|
|
22
|
+
*/
|
|
23
|
+
const AsgardeoContext = createContext({});
|
|
24
|
+
AsgardeoContext.displayName = 'AsgardeoContext';
|
|
25
|
+
export default AsgardeoContext;
|
|
26
|
+
//# sourceMappingURL=AsgardeoContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsgardeoContext.js","sourceRoot":"","sources":["../../../src/client/contexts/AsgardeoContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,CAAC;AAGb,OAAO,EAAU,aAAa,EAAC,MAAM,OAAO,CAAC;AAO7C;;GAEG;AACH,MAAM,eAAe,GAAyC,aAAa,CAA8B,EAAE,CAAC,CAAC;AAE7G,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC;AAEhD,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { AsgardeoContextProps } from '../contexts/AsgardeoContext';
|
|
19
|
+
declare const useAsgardeo: () => AsgardeoContextProps;
|
|
20
|
+
export default useAsgardeo;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
'use client';
|
|
19
|
+
import { useContext } from 'react';
|
|
20
|
+
import AsgardeoContext from '../contexts/AsgardeoContext';
|
|
21
|
+
const useAsgardeo = () => {
|
|
22
|
+
const context = useContext(AsgardeoContext);
|
|
23
|
+
if (!context) {
|
|
24
|
+
throw new Error('useAsgardeo must be used within an AsgardeoProvider');
|
|
25
|
+
}
|
|
26
|
+
return context;
|
|
27
|
+
};
|
|
28
|
+
export default useAsgardeo;
|
|
29
|
+
//# sourceMappingURL=useAsgardeo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAsgardeo.js","sourceRoot":"","sources":["../../../src/client/hooks/useAsgardeo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,CAAC;AAEb,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,eAAuC,MAAM,6BAA6B,CAAC;AAElF,MAAM,WAAW,GAAG,GAAyB,EAAE;IAC7C,MAAM,OAAO,GAAgC,UAAU,CAAC,eAAe,CAAC,CAAC;IAEzE,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FC, PropsWithChildren } from 'react';
|
|
19
|
+
/**
|
|
20
|
+
* Props interface of {@link AsgardeoClientProvider}
|
|
21
|
+
*/
|
|
22
|
+
export type AsgardeoClientProviderProps = {};
|
|
23
|
+
declare const AsgardeoClientProvider: FC<PropsWithChildren<AsgardeoClientProviderProps>>;
|
|
24
|
+
export default AsgardeoClientProvider;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
'use client';
|
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
import AsgardeoContext from '../contexts/AsgardeoContext';
|
|
21
|
+
const AsgardeoClientProvider = ({ children, }) => (_jsx(AsgardeoContext.Provider, { value: {}, children: children }));
|
|
22
|
+
export default AsgardeoClientProvider;
|
|
23
|
+
//# sourceMappingURL=AsgardeoProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AsgardeoProvider.js","sourceRoot":"","sources":["../../../src/client/providers/AsgardeoProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,CAAC;;AAGb,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAO1D,MAAM,sBAAsB,GAAuD,CAAC,EAClF,QAAQ,GACuC,EAAE,EAAE,CAAC,CACpD,KAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,YAAG,QAAQ,GAA4B,CAC3E,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { InternalAuthAPIRoutes } from '../models/api';
|
|
19
|
+
declare const InternalAuthAPIRoutesConfig: InternalAuthAPIRoutes;
|
|
20
|
+
export default InternalAuthAPIRoutesConfig;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
const InternalAuthAPIRoutesConfig = {
|
|
19
|
+
session: '/api/auth/session',
|
|
20
|
+
signIn: '/api/auth/signin',
|
|
21
|
+
signOut: '/api/auth/signout',
|
|
22
|
+
signUp: undefined
|
|
23
|
+
};
|
|
24
|
+
export default InternalAuthAPIRoutesConfig;
|
|
25
|
+
//# sourceMappingURL=InternalAuthAPIRoutesConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalAuthAPIRoutesConfig.js","sourceRoot":"","sources":["../../src/configs/InternalAuthAPIRoutesConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,2BAA2B,GAA0B;IACzD,OAAO,EAAE,mBAAmB;IAC5B,MAAM,EAAE,kBAAkB;IAC1B,OAAO,EAAE,mBAAmB;IAC5B,MAAM,EAAE,SAAS;CAClB,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
export { default as AsgardeoProvider } from './server/AsgardeoProvider';
|
|
19
|
+
export * from './server/AsgardeoProvider';
|
|
20
|
+
export { default as isSignedIn } from './server/actions/isSignedIn';
|
|
21
|
+
export { default as SignedIn } from './client/components/control/SignedIn';
|
|
22
|
+
export * from './client/components/control/SignedIn';
|
|
23
|
+
export { default as SignedOut } from './client/components/control/SignedOut';
|
|
24
|
+
export * from './client/components/control/SignedOut';
|
|
25
|
+
export { default as SignInButton } from './client/components/actions/SignInButton';
|
|
26
|
+
export type { SignInButtonProps } from './client/components/actions/SignInButton';
|
|
27
|
+
export { default as SignOutButton } from './client/components/actions/SignOutButton';
|
|
28
|
+
export type { SignOutButtonProps } from './client/components/actions/SignOutButton';
|
|
29
|
+
export { default as AsgardeoContext } from './client/contexts/AsgardeoContext';
|
|
30
|
+
export type { AsgardeoContextProps } from './client/contexts/AsgardeoContext';
|
|
31
|
+
export { default as AsgardeoNext } from './AsgardeoNextClient';
|