@candlerip/shared3 0.0.81 → 0.0.83

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.81",
3
+ "version": "0.0.83",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,6 +1,7 @@
1
1
  export interface Auth {
2
- accessToken: string;
3
- user: {
2
+ accessToken?: string;
3
+ isAuthenticated: boolean;
4
+ user?: {
4
5
  [key in string]: any;
5
6
  };
6
7
  }
@@ -2,7 +2,7 @@ import { Auth } from '../../../auth/index.js';
2
2
  import { AddCandlePageDictionary, Language } from '../../../dictionary/index.js';
3
3
  import { AddCandlePageData } from '../../../page/index.js';
4
4
  export interface AddCandlePageServerSideProps {
5
- auth?: Auth;
5
+ auth: Auth;
6
6
  dictionary: AddCandlePageDictionary;
7
7
  language: Language;
8
8
  pageData: AddCandlePageData;
@@ -1,7 +1,7 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
2
  import { ContactPageDictionary, Language } from '../../../dictionary/index.js';
3
3
  export interface ContactPageServerSideProps {
4
- auth?: Auth;
4
+ auth: Auth;
5
5
  dictionary: ContactPageDictionary;
6
6
  language: Language;
7
7
  }
@@ -2,7 +2,7 @@ import { Auth } from '../../../auth/index.js';
2
2
  import { CookieConsent } from '../../../cookie/index.js';
3
3
  import { CookiePolicyPageDictionary, Language } from '../../../dictionary/index.js';
4
4
  export interface CookiePolicyPageServerSideProps {
5
- auth?: Auth;
5
+ auth: Auth;
6
6
  cookieConsent?: CookieConsent;
7
7
  dictionary: CookiePolicyPageDictionary;
8
8
  language: Language;
@@ -1,7 +1,7 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
2
  import { HelpPageDictionary, Language } from '../../../dictionary/index.js';
3
3
  export interface HelpPageServerSideProps {
4
- auth?: Auth;
4
+ auth: Auth;
5
5
  dictionary: HelpPageDictionary;
6
6
  language: Language;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import { Auth } from '../../../auth/index.js';
2
2
  import { Language, TermsAndConditionsPageDictionary } from '../../../dictionary/index.js';
3
3
  export interface TermsAndConditionsPageServerSideProps {
4
- auth?: Auth;
4
+ auth: Auth;
5
5
  dictionary: TermsAndConditionsPageDictionary;
6
6
  language: Language;
7
7
  }