Skip to content

Commit

Permalink
Revert "fix(docs): use correct listLocation attribute names in Storag…
Browse files Browse the repository at this point in the history
…e Browser auth example (#6264)"

This reverts commit b1a45b9.
  • Loading branch information
jordanvn committed Jan 2, 2025
1 parent 54bd185 commit 80d00aa
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,20 +195,20 @@ export const { StorageBrowser } = createStorageBrowser({
listLocations: async (input = {}) => {
const { nextToken, pageSize } = input;
return {
items: [
locations: [
{
bucket: '[bucket name]',
bucketName: '[bucket name]',
prefix: '', // empty path means bucket root
id: 'XXXXXXX', // unique identifier
type: 'BUCKET',
permissions: ['delete', 'get', 'list', 'write'],
permission: ['delete', 'get', 'list', 'write'],
},
{
bucket: '[bucket name]',
bucketName: '[bucket name]',
prefix: 'some/path',
id: 'XXXXXXX', // unique identifier
type: 'PREFIX',
permissions: ['delete', 'get', 'list', 'write'],
permission: ['delete', 'get', 'list', 'write'],
}
]
}
Expand Down

0 comments on commit 80d00aa

Please sign in to comment.