@genation/sdk 0.2.11 → 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/genation.cjs.js +1 -1
- package/dist/genation.cjs.js.map +1 -1
- package/dist/genation.es.js +546 -526
- package/dist/genation.es.js.map +1 -1
- package/dist/genation.umd.js +1 -1
- package/dist/genation.umd.js.map +1 -1
- package/dist/index.d.ts +2 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JWTPayload } from 'jose';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Authentication-related errors
|
|
@@ -135,7 +135,6 @@ export declare function createStorage(type?: StorageType): TokenStorage;
|
|
|
135
135
|
export declare class GenationClient {
|
|
136
136
|
private oauth;
|
|
137
137
|
private tokenManager;
|
|
138
|
-
private jwksUrl;
|
|
139
138
|
private http;
|
|
140
139
|
private httpServer;
|
|
141
140
|
private listeners;
|
|
@@ -822,13 +821,6 @@ export declare interface User {
|
|
|
822
821
|
[key: string]: unknown;
|
|
823
822
|
}
|
|
824
823
|
|
|
825
|
-
|
|
826
|
-
* Verify a JWT against a public JWKS endpoint
|
|
827
|
-
*
|
|
828
|
-
* @param token - The JWT to verify
|
|
829
|
-
* @param jwksUrl - The URL of the JWKS endpoint. Defaults to Genation Auth URL.
|
|
830
|
-
* @returns The verification result including the payload
|
|
831
|
-
*/
|
|
832
|
-
export declare function verifyToken(token: string, jwksUrl?: string): Promise<JWTVerifyResult>;
|
|
824
|
+
export declare function verifyToken(token: string): Promise<JWTPayload | null>;
|
|
833
825
|
|
|
834
826
|
export { }
|