@asgardeo/nextjs 0.1.2 → 0.1.4
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/AsgardeoNextClient.d.ts +11 -4
- package/dist/AsgardeoNextClient.js +111 -12
- package/dist/AsgardeoNextClient.js.map +1 -1
- package/dist/cjs/index.js +18 -0
- package/dist/cjs/index.js.map +3 -3
- package/dist/client/components/presentation/CreateOrganization/CreateOrganization.d.ts +67 -0
- package/dist/client/components/presentation/CreateOrganization/CreateOrganization.js +109 -0
- package/dist/client/components/presentation/CreateOrganization/CreateOrganization.js.map +1 -0
- package/dist/client/components/presentation/Organization/Organization.d.ts +66 -0
- package/dist/client/components/presentation/Organization/Organization.js +55 -0
- package/dist/client/components/presentation/Organization/Organization.js.map +1 -0
- package/dist/client/components/presentation/OrganizationList/OrganizationList.d.ts +92 -0
- package/dist/client/components/presentation/OrganizationList/OrganizationList.js +75 -0
- package/dist/client/components/presentation/OrganizationList/OrganizationList.js.map +1 -0
- package/dist/client/components/presentation/OrganizationProfile/OrganizationProfile.d.ts +119 -0
- package/dist/client/components/presentation/OrganizationProfile/OrganizationProfile.js +145 -0
- package/dist/client/components/presentation/OrganizationProfile/OrganizationProfile.js.map +1 -0
- package/dist/client/components/presentation/OrganizationSwitcher/OrganizationSwitcher.d.ts +71 -0
- package/dist/client/components/presentation/OrganizationSwitcher/OrganizationSwitcher.js +102 -0
- package/dist/client/components/presentation/OrganizationSwitcher/OrganizationSwitcher.js.map +1 -0
- package/dist/client/components/presentation/UserProfile/UserProfile.js +3 -4
- package/dist/client/components/presentation/UserProfile/UserProfile.js.map +1 -1
- package/dist/client/contexts/Asgardeo/AsgardeoContext.js +2 -0
- package/dist/client/contexts/Asgardeo/AsgardeoContext.js.map +1 -1
- package/dist/client/contexts/Asgardeo/AsgardeoProvider.d.ts +16 -1
- package/dist/client/contexts/Asgardeo/AsgardeoProvider.js +25 -6
- package/dist/client/contexts/Asgardeo/AsgardeoProvider.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/server/AsgardeoProvider.js +71 -2
- package/dist/server/AsgardeoProvider.js.map +1 -1
- package/dist/server/actions/createOrganizationAction.d.ts +37 -0
- package/dist/server/actions/createOrganizationAction.js +40 -0
- package/dist/server/actions/createOrganizationAction.js.map +1 -0
- package/dist/server/actions/getAllOrganizations.d.ts +23 -0
- package/dist/server/actions/getAllOrganizations.js +34 -0
- package/dist/server/actions/getAllOrganizations.js.map +1 -0
- package/dist/server/actions/getBrandingPreference.d.ts +23 -0
- package/dist/server/actions/getBrandingPreference.js +32 -0
- package/dist/server/actions/getBrandingPreference.js.map +1 -0
- package/dist/server/actions/getCurrentOrganizationAction.d.ts +37 -0
- package/dist/server/actions/getCurrentOrganizationAction.js +40 -0
- package/dist/server/actions/getCurrentOrganizationAction.js.map +1 -0
- package/dist/server/actions/getMyOrganizations.d.ts +23 -0
- package/dist/server/actions/getMyOrganizations.js +34 -0
- package/dist/server/actions/getMyOrganizations.js.map +1 -0
- package/dist/server/actions/getOrganizationAction.d.ts +37 -0
- package/dist/server/actions/getOrganizationAction.js +40 -0
- package/dist/server/actions/getOrganizationAction.js.map +1 -0
- package/dist/server/actions/switchOrganization.d.ts +23 -0
- package/dist/server/actions/switchOrganization.js +34 -0
- package/dist/server/actions/switchOrganization.js.map +1 -0
- package/dist/server/actions/updateUserProfileAction.d.ts +2 -8
- package/dist/server/actions/updateUserProfileAction.js +2 -2
- package/dist/server/actions/updateUserProfileAction.js.map +1 -1
- package/dist/utils/decorateConfigWithNextEnv.js +4 -1
- package/dist/utils/decorateConfigWithNextEnv.js.map +1 -1
- package/package.json +3 -11
|
@@ -0,0 +1,37 @@
|
|
|
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 { OrganizationDetails } from '@asgardeo/node';
|
|
19
|
+
/**
|
|
20
|
+
* Server action to create an organization.
|
|
21
|
+
*/
|
|
22
|
+
declare const getOrganizationAction: (organizationId: string, sessionId: string) => Promise<{
|
|
23
|
+
success: boolean;
|
|
24
|
+
data: {
|
|
25
|
+
organization: OrganizationDetails;
|
|
26
|
+
user?: undefined;
|
|
27
|
+
};
|
|
28
|
+
error: null;
|
|
29
|
+
} | {
|
|
30
|
+
success: boolean;
|
|
31
|
+
data: {
|
|
32
|
+
user: {};
|
|
33
|
+
organization?: undefined;
|
|
34
|
+
};
|
|
35
|
+
error: string;
|
|
36
|
+
}>;
|
|
37
|
+
export default getOrganizationAction;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 server';
|
|
19
|
+
import AsgardeoNextClient from '../../AsgardeoNextClient';
|
|
20
|
+
/**
|
|
21
|
+
* Server action to create an organization.
|
|
22
|
+
*/
|
|
23
|
+
const getOrganizationAction = async (organizationId, sessionId) => {
|
|
24
|
+
try {
|
|
25
|
+
const client = AsgardeoNextClient.getInstance();
|
|
26
|
+
const organization = await client.getOrganization(organizationId, sessionId);
|
|
27
|
+
return { success: true, data: { organization }, error: null };
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
return {
|
|
31
|
+
success: false,
|
|
32
|
+
data: {
|
|
33
|
+
user: {},
|
|
34
|
+
},
|
|
35
|
+
error: 'Failed to get organization',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
export default getOrganizationAction;
|
|
40
|
+
//# sourceMappingURL=getOrganizationAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganizationAction.js","sourceRoot":"","sources":["../../../src/server/actions/getOrganizationAction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,CAAC;AAGb,OAAO,kBAAkB,MAAM,0BAA0B,CAAC;AAE1D;;GAEG;AACH,MAAM,qBAAqB,GAAG,KAAK,EAAE,cAAsB,EAAE,SAAiB,EAAE,EAAE;IAChF,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,EAAE,CAAC;QAChD,MAAM,YAAY,GAAwB,MAAM,MAAM,CAAC,eAAe,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC;QAClG,OAAO,EAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,EAAC,YAAY,EAAC,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC;IAC5D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE,KAAK;YACd,IAAI,EAAE;gBACJ,IAAI,EAAE,EAAE;aACT;YACD,KAAK,EAAE,4BAA4B;SACpC,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -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
|
+
import { Organization, TokenResponse } from '@asgardeo/node';
|
|
19
|
+
/**
|
|
20
|
+
* Server action to switch organization.
|
|
21
|
+
*/
|
|
22
|
+
declare const switchOrganization: (organization: Organization, sessionId: string) => Promise<TokenResponse | Response>;
|
|
23
|
+
export default switchOrganization;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 server';
|
|
19
|
+
import { AsgardeoAPIError, AsgardeoRuntimeError } from '@asgardeo/node';
|
|
20
|
+
import AsgardeoNextClient from '../../AsgardeoNextClient';
|
|
21
|
+
/**
|
|
22
|
+
* Server action to switch organization.
|
|
23
|
+
*/
|
|
24
|
+
const switchOrganization = async (organization, sessionId) => {
|
|
25
|
+
try {
|
|
26
|
+
const client = AsgardeoNextClient.getInstance();
|
|
27
|
+
return await client.switchOrganization(organization, sessionId);
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
throw new AsgardeoAPIError(`Failed to switch the organizations: ${error instanceof AsgardeoRuntimeError ? error.message : error instanceof Error ? error.message : String(error)}`, 'switchOrganization-ServerActionError-001', 'nextjs', error instanceof AsgardeoAPIError ? error.statusCode : undefined);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export default switchOrganization;
|
|
34
|
+
//# sourceMappingURL=switchOrganization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switchOrganization.js","sourceRoot":"","sources":["../../../src/server/actions/switchOrganization.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,CAAC;AAEb,OAAO,EAAe,gBAAgB,EAAE,oBAAoB,EAAgB,MAAM,gBAAgB,CAAC;AACnG,OAAO,kBAAkB,MAAM,0BAA0B,CAAC;AAE1D;;GAEG;AACH,MAAM,kBAAkB,GAAG,KAAK,EAAE,YAA0B,EAAE,SAAiB,EAAqC,EAAE;IACpH,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,EAAE,CAAC;QAChD,OAAO,MAAM,MAAM,CAAC,kBAAkB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IAClE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,gBAAgB,CACxB,uCACE,KAAK,YAAY,oBAAoB,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAC/G,EAAE,EACF,0CAA0C,EAC1C,QAAQ,EACR,KAAK,YAAY,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CACjE,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -15,22 +15,16 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { User } from '@asgardeo/node';
|
|
18
|
+
import { UpdateMeProfileConfig, User } from '@asgardeo/node';
|
|
19
19
|
/**
|
|
20
20
|
* Server action to get the current user.
|
|
21
21
|
* Returns the user profile if signed in.
|
|
22
22
|
*/
|
|
23
|
-
declare const updateUserProfileAction: (payload:
|
|
23
|
+
declare const updateUserProfileAction: (payload: UpdateMeProfileConfig, sessionId?: string) => Promise<{
|
|
24
24
|
success: boolean;
|
|
25
25
|
data: {
|
|
26
26
|
user: User;
|
|
27
27
|
};
|
|
28
|
-
error: null;
|
|
29
|
-
} | {
|
|
30
|
-
success: boolean;
|
|
31
|
-
data: {
|
|
32
|
-
user: {};
|
|
33
|
-
};
|
|
34
28
|
error: string;
|
|
35
29
|
}>;
|
|
36
30
|
export default updateUserProfileAction;
|
|
@@ -25,7 +25,7 @@ const updateUserProfileAction = async (payload, sessionId) => {
|
|
|
25
25
|
try {
|
|
26
26
|
const client = AsgardeoNextClient.getInstance();
|
|
27
27
|
const user = await client.updateUserProfile(payload, sessionId);
|
|
28
|
-
return { success: true, data: { user }, error:
|
|
28
|
+
return { success: true, data: { user }, error: "" };
|
|
29
29
|
}
|
|
30
30
|
catch (error) {
|
|
31
31
|
return {
|
|
@@ -33,7 +33,7 @@ const updateUserProfileAction = async (payload, sessionId) => {
|
|
|
33
33
|
data: {
|
|
34
34
|
user: {},
|
|
35
35
|
},
|
|
36
|
-
error:
|
|
36
|
+
error: `Failed to get user profile: ${error instanceof Error ? error.message : String(error)}`,
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateUserProfileAction.js","sourceRoot":"","sources":["../../../src/server/actions/updateUserProfileAction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,CAAC;AAGb,OAAO,kBAAkB,MAAM,0BAA0B,CAAC;AAE1D;;;GAGG;AACH,MAAM,uBAAuB,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"updateUserProfileAction.js","sourceRoot":"","sources":["../../../src/server/actions/updateUserProfileAction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,YAAY,CAAC;AAGb,OAAO,kBAAkB,MAAM,0BAA0B,CAAC;AAE1D;;;GAGG;AACH,MAAM,uBAAuB,GAAG,KAAK,EACnC,OAA8B,EAC9B,SAAkB,EAC8C,EAAE;IAClE,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,EAAE,CAAC;QAChD,MAAM,IAAI,GAAS,MAAM,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QACtE,OAAO,EAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,EAAE,EAAE,EAAC,CAAC;IAClD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO;YACL,OAAO,EAAE,KAAK;YACd,IAAI,EAAE;gBACJ,IAAI,EAAE,EAAE;aACT;YACD,KAAK,EAAE,+BAA+B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;SAC/F,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -16,9 +16,12 @@
|
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
18
|
const decorateConfigWithNextEnv = (config) => {
|
|
19
|
-
const { baseUrl, clientId, clientSecret, signInUrl, signUpUrl, afterSignInUrl, afterSignOutUrl, ...rest } = config;
|
|
19
|
+
const { organizationHandle, scopes, applicationId, baseUrl, clientId, clientSecret, signInUrl, signUpUrl, afterSignInUrl, afterSignOutUrl, ...rest } = config;
|
|
20
20
|
return {
|
|
21
21
|
...rest,
|
|
22
|
+
scopes: scopes || process.env['NEXT_PUBLIC_ASGARDEO_SCOPES'],
|
|
23
|
+
organizationHandle: organizationHandle || process.env['NEXT_PUBLIC_ASGARDEO_ORGANIZATION_HANDLE'],
|
|
24
|
+
applicationId: applicationId || process.env['NEXT_PUBLIC_ASGARDEO_APPLICATION_ID'],
|
|
22
25
|
baseUrl: baseUrl || process.env['NEXT_PUBLIC_ASGARDEO_BASE_URL'],
|
|
23
26
|
clientId: clientId || process.env['NEXT_PUBLIC_ASGARDEO_CLIENT_ID'],
|
|
24
27
|
clientSecret: clientSecret || process.env['ASGARDEO_CLIENT_SECRET'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorateConfigWithNextEnv.js","sourceRoot":"","sources":["../../src/utils/decorateConfigWithNextEnv.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,yBAAyB,GAAG,CAAC,MAA0B,EAAsB,EAAE;IACnF,MAAM,EAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,IAAI,EAAC,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"decorateConfigWithNextEnv.js","sourceRoot":"","sources":["../../src/utils/decorateConfigWithNextEnv.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,MAAM,yBAAyB,GAAG,CAAC,MAA0B,EAAsB,EAAE;IACnF,MAAM,EAAC,kBAAkB,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,IAAI,EAAC,GAAG,MAAM,CAAC;IAE5J,OAAO;QACL,GAAG,IAAI;QACP,MAAM,EAAE,MAAM,IAAK,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAY;QACxE,kBAAkB,EAAE,kBAAkB,IAAK,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAY;QAC7G,aAAa,EAAE,aAAa,IAAK,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAY;QAC9F,OAAO,EAAE,OAAO,IAAK,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAY;QAC5E,QAAQ,EAAE,QAAQ,IAAK,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAY;QAC/E,YAAY,EAAE,YAAY,IAAK,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAY;QAC/E,cAAc,EAAE,cAAc,IAAK,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAY;QACnG,SAAS,EAAE,SAAS,IAAK,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAY;QACnF,eAAe,EAAE,eAAe,IAAK,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAY;QACtG,SAAS,EAAE,SAAS,IAAK,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAY;KACpF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asgardeo/nextjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Next.js implementation of Asgardeo JavaScript SDK.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"asgardeo",
|
|
@@ -22,14 +22,6 @@
|
|
|
22
22
|
".": {
|
|
23
23
|
"import": "./dist/index.js",
|
|
24
24
|
"require": "./dist/cjs/index.js"
|
|
25
|
-
},
|
|
26
|
-
"./middleware": {
|
|
27
|
-
"import": "./dist/middleware/index.js",
|
|
28
|
-
"require": "./dist/cjs/middleware/index.js"
|
|
29
|
-
},
|
|
30
|
-
"./server": {
|
|
31
|
-
"import": "./dist/server/index.js",
|
|
32
|
-
"require": "./dist/cjs/server/index.js"
|
|
33
25
|
}
|
|
34
26
|
},
|
|
35
27
|
"files": [
|
|
@@ -46,8 +38,8 @@
|
|
|
46
38
|
"dependencies": {
|
|
47
39
|
"@types/react": "^19.1.4",
|
|
48
40
|
"tslib": "^2.8.1",
|
|
49
|
-
"@asgardeo/node": "^0.0.
|
|
50
|
-
"@asgardeo/react": "^0.5.
|
|
41
|
+
"@asgardeo/node": "^0.0.5",
|
|
42
|
+
"@asgardeo/react": "^0.5.5"
|
|
51
43
|
},
|
|
52
44
|
"devDependencies": {
|
|
53
45
|
"@types/node": "^22.15.3",
|