Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
doregg committed Oct 23, 2023
1 parent b296b2d commit 9bb9857
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vue/src/auth/entitlements.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-ignore
import { inject, computed } from 'vue';
import { EntitledToOptions, Entitlement, CustomAttributes, Attributes } from '@frontegg/types';
import { EntitledToOptions, Entitlement, CustomAttributes, Attributes, JwtAttributes } from '@frontegg/types';

import {
getFeatureEntitlements,
Expand Down Expand Up @@ -41,10 +41,10 @@ const useEntitlementsQueryData = (customAttributes?: CustomAttributes) => {
const entitlements = user?.entitlements;
const isV2 = useIsV2API();

const attributes = {
const attributes: Attributes | undefined = {
custom: customAttributes,
frontegg: user,
} as Attributes | undefined;
jwt: user as JwtAttributes | undefined,
};

return {
entitlements,
Expand Down

0 comments on commit 9bb9857

Please sign in to comment.