@pierre/storage 0.9.0 → 0.9.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pierre/storage",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Pierre Git Storage SDK",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -1204,12 +1204,13 @@ export class GitStorage {
1204
1204
 
1205
1205
  if (baseRepo) {
1206
1206
  if ('id' in baseRepo) {
1207
- const baseRepoToken = await this.generateJWT(baseRepo.id, {
1207
+ const baseRepoToken = await this.generateJWT(`${this.options.name}/${baseRepo.id}`, {
1208
1208
  permissions: ['git:read'],
1209
1209
  ttl,
1210
1210
  });
1211
1211
  baseRepoOptions = {
1212
1212
  provider: 'code',
1213
+ owner: this.options.name,
1213
1214
  name: baseRepo.id,
1214
1215
  operation: 'fork',
1215
1216
  auth: { token: baseRepoToken },