diff --git a/references/core.md b/references/core.md index f144651..234467b 100644 --- a/references/core.md +++ b/references/core.md @@ -109,13 +109,20 @@ satellite: { authentication: { google: { clientId: "1234567890-abc.apps.googleusercontent.com" }, // OR - github: { clientId: "your-github-client-id" }, - // Optional delegation settings: + github: { clientId: "your-github-client-id" } + } +} +``` + +Each method can optionally be configured with a delegation object. For example: + +```ts +google: { + clientId: "1234567890-abc.apps.googleusercontent.com", delegation: { - allowedTargets: [""], // null = allow any canister (use with caution) - sessionDuration: BigInt(7 * 24 * 60 * 60 * 1_000_000_000) // 7 days, max 30 days + allowedTargets: [""], // null = allow usage for calling any canister (use with caution) + sessionDuration: BigInt(7 * 24 * 60 * 60 * 1_000_000_000) // e.g. 7 days, max 30 days } - } } ```