Skip to content

Commit 2a0c6b9

Browse files
committed
chore: exclude nuxt package from pnpm workspace
1 parent 3754d9b commit 2a0c6b9

File tree

6 files changed

+90
-5234
lines changed

6 files changed

+90
-5234
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"lint": "nx run-many --target=lint --all --parallel",
2525
"publish:packages": "changeset publish",
2626
"test": "nx run-many --target=test --all --parallel",
27+
"typecheck": "nx run-many --target=typecheck --all --parallel",
2728
"version:packages": "changeset version && pnpm install --lockfile-only"
2829
},
2930
"devDependencies": {

packages/nuxt/src/runtime/composables/asgardeo/useAuth.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* under the License.
1717
*/
1818

19-
import type {BasicUserInfo, StorageManager, IdTokenPayload, OIDCEndpoints} from '@asgardeo/node';
19+
import type {User, StorageManager, IdTokenPayload, OIDCEndpoints} from '@asgardeo/node';
2020
import type {AuthInterface} from '../../types';
2121
import {navigateTo} from '#imports';
2222

@@ -172,11 +172,11 @@ export const useAuth = (): AuthInterface => {
172172
* from the server-side '/api/auth/user' endpoint.
173173
* Updates the internal state variables with the result.
174174
*
175-
* @returns {Promise<BasicUserInfo | null>} A promise resolving to user info or null.
175+
* @returns {Promise<User | null>} A promise resolving to user info or null.
176176
*/
177-
const getUser = async (): Promise<BasicUserInfo | null> => {
177+
const getUser = async (): Promise<User | null> => {
178178
try {
179-
const userInfo: BasicUserInfo = await $fetch<BasicUserInfo>('/api/auth/user', {
179+
const userInfo: User = await $fetch<User>('/api/auth/user', {
180180
method: 'GET',
181181
});
182182

packages/nuxt/src/runtime/server/services/asgardeo/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* under the License.
1717
*/
1818

19-
import {AsgardeoNodeClient, type AuthClientConfig} from '@asgardeo/auth-node';
19+
import {AsgardeoNodeClient, type AuthClientConfig} from '@asgardeo/node';
2020

2121
let authClientInstance: AsgardeoNodeClient<any> | null = null;
2222

packages/nuxt/src/runtime/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* under the License.
1717
*/
1818

19-
import type {BasicUserInfo, StorageManager, IdTokenPayload, OIDCEndpoints} from '@asgardeo/node';
19+
import type {User, StorageManager, IdTokenPayload, OIDCEndpoints} from '@asgardeo/node';
2020

2121
export interface ModuleOptions {
2222
/**
@@ -59,7 +59,7 @@ export interface ModuleOptions {
5959

6060
export interface AuthInterface {
6161
getAccessToken: () => Promise<string | null>;
62-
getUser: () => Promise<BasicUserInfo | null>;
62+
getUser: () => Promise<User | null>;
6363
getStorageManager: () => Promise<StorageManager<any> | null>;
6464
getDecodedIdToken: () => Promise<IdTokenPayload | null>;
6565
getIdToken: () => Promise<string | null>;
@@ -74,4 +74,4 @@ export type SessionLastRefreshedAt = Date | undefined;
7474

7575
export type SessionStatus = 'authenticated' | 'unauthenticated' | 'loading';
7676

77-
export type {BasicUserInfo};
77+
export type {User};

0 commit comments

Comments
 (0)