Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/cloudflare-workers/src/manager-driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
type GetForIdInput,
type GetOrCreateWithKeyInput,
type GetWithKeyInput,
generateRandomString,
type ManagerDisplayInformation,
type ManagerDriver,
WS_PROTOCOL_ACTOR,
Expand Down Expand Up @@ -372,4 +373,8 @@ export class CloudflareActorsManagerDriver implements ManagerDriver {
properties: {},
};
}

getOrCreateInspectorAccessToken() {
return generateRandomString();
}
}
1 change: 1 addition & 0 deletions packages/rivetkit/src/driver-helpers/mod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export type { ActorDriver } from "@/actor/driver";
export type { ActorInstance, AnyActorInstance } from "@/actor/instance";
export { generateRandomString } from "@/actor/utils";
export {
ALLOWED_PUBLIC_HEADERS,
HEADER_ACTOR_ID,
Expand Down
2 changes: 1 addition & 1 deletion packages/rivetkit/src/manager/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface ManagerDriver {

/**
* Get or create the inspector access token.
* @internal
* @experimental
* @returns creates or returns existing inspector access token
*/
getOrCreateInspectorAccessToken: () => string;
Expand Down
Loading