Skip to content

Commit

Permalink
chore: generate valid auth token (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored Nov 20, 2024
1 parent 5241610 commit d740541
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/interop/test/compliance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ describe('pinning service compliance', function () {
beforeEach(async () => {
authtoken = nanoid()

// generate a token that can be passed as a CLI arg without tripping up the
// arg parser
while (true) {
if (authtoken.startsWith('-')) {
authtoken = nanoid()
} else {
break
}
}

helia = await createHelia()
server = await createPinningServiceAPIServer(helia, {
validateAccessToken: (token) => {
Expand Down

0 comments on commit d740541

Please sign in to comment.