@mattygt86/daturetech-auth-library 0.0.4 → 0.0.5

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.
@@ -33,7 +33,7 @@ class Auth0Provider extends auth_abstract_1.AuthProvider {
33
33
  username: email,
34
34
  password: password,
35
35
  audience: `https://${this.audience}`,
36
- scope: "openid profile email"
36
+ scope: "openid profile email offline_access"
37
37
  }, {
38
38
  headers: { 'Content-Type': 'application/json' }
39
39
  });
@@ -1,11 +1,15 @@
1
1
  export type TUser = {
2
2
  access_token: string;
3
3
  id_token: string;
4
+ refresh_token?: string;
4
5
  scope: string;
5
6
  expires_in: number;
6
7
  token_type: string;
7
8
  };
8
9
  export type TCurrentUser = {
10
+ customer: {
11
+ id: string;
12
+ };
9
13
  sub?: string;
10
14
  nickname: string;
11
15
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"auth0.d.ts","sourceRoot":"","sources":["../../src/types/auth0.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;CAC3B,CAAA"}
1
+ {"version":3,"file":"auth0.d.ts","sourceRoot":"","sources":["../../src/types/auth0.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACtB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACvB,QAAQ,EAAE;QACN,EAAE,EAAE,MAAM,CAAA;KACb,CAAA;IACD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;CAC3B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattygt86/daturetech-auth-library",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A TypeScript authentication library with provider abstraction",
5
5
  "keywords": [
6
6
  "auth"