@orello/auth 1.0.4 → 1.0.6

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.
@@ -5,6 +5,10 @@ declare class OrelloAuthClient {
5
5
  private appId;
6
6
  private clientKey;
7
7
  constructor(options: OrelloAuthClientConfig);
8
- verifyToken(token: string): Promise<UserData | null>;
8
+ verifyToken(token: string): Promise<{
9
+ accessToken: string;
10
+ refreshToken: string;
11
+ user: UserData | null;
12
+ } | null>;
9
13
  }
10
14
  export default OrelloAuthClient;
@@ -31,6 +31,7 @@ class OrelloAuthClient {
31
31
  "Content-Type": "application/json",
32
32
  "Client-Key": this.clientKey,
33
33
  "App-Id": this.appId,
34
+ "Intent": "oauth"
34
35
  }
35
36
  });
36
37
  return res.data;
@@ -2,5 +2,8 @@ export interface UserData {
2
2
  id: string;
3
3
  firstName: string;
4
4
  lastName: string;
5
+ otherNames?: string[];
5
6
  email: string;
7
+ photoUrl?: string;
8
+ phoneNumber?: string;
6
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orello/auth",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "private": false,
5
5
  "description": "Authentication package for Orello.",
6
6
  "main": "dist/index.js",