chore: commit to move to laptop
This commit is contained in:
@@ -365,8 +365,13 @@ export interface DailyNotificationPlugin {
|
||||
* - Production: `"https://api.timesafari.com"`
|
||||
* - `activeDid` (required): Active DID for authentication.
|
||||
* Format: `"did:ethr:0x..."`. Used as JWT issuer/subject.
|
||||
* - `jwtSecret` (required): JWT secret for signing tokens.
|
||||
* **Keep secure in production!** Consider using secure storage.
|
||||
* - `jwtToken` (required): Pre-generated JWT token (ES256K signed).
|
||||
* Generated in TypeScript using TimeSafari's `createEndorserJwtForKey()` function.
|
||||
* **Note**: Token should be ES256K signed (DID-based), not HS256.
|
||||
*
|
||||
* **Architecture Note**: JWT tokens should be generated in TypeScript using TimeSafari's
|
||||
* `createEndorserJwtForKey()` function (which uses DID-based ES256K signing), then passed
|
||||
* to this method. This avoids the complexity of implementing DID-based JWT signing in Java.
|
||||
*
|
||||
* @throws {Error} If configuration fails (missing params, no fetcher registered, etc.)
|
||||
*
|
||||
@@ -376,7 +381,7 @@ export interface DailyNotificationPlugin {
|
||||
configureNativeFetcher(options: {
|
||||
apiBaseUrl: string;
|
||||
activeDid: string;
|
||||
jwtSecret: string;
|
||||
jwtToken: string; // Pre-generated JWT token (ES256K signed) from TypeScript
|
||||
}): Promise<void>;
|
||||
|
||||
// Rolling window management
|
||||
|
||||
Reference in New Issue
Block a user