@genation/sdk 0.2.10 → 0.2.12

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.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { JWTPayload } from 'jose';
2
+
1
3
  /**
2
4
  * Authentication-related errors
3
5
  */
@@ -133,7 +135,6 @@ export declare function createStorage(type?: StorageType): TokenStorage;
133
135
  export declare class GenationClient {
134
136
  private oauth;
135
137
  private tokenManager;
136
- private tokenVerifier;
137
138
  private http;
138
139
  private httpServer;
139
140
  private listeners;
@@ -820,4 +821,6 @@ export declare interface User {
820
821
  [key: string]: unknown;
821
822
  }
822
823
 
824
+ export declare function verifyToken(token: string): Promise<JWTPayload | null>;
825
+
823
826
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genation/sdk",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "OAuth 2.1 SDK for Genation authentication",
5
5
  "type": "module",
6
6
  "main": "./dist/genation.cjs.js",