Skip to content

Commit

Permalink
[Docs] Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicPoullain committed Aug 25, 2024
1 parent 431ae1f commit 77adc83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/common/utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ In many situations, we need to generate tokens and then verify them. If your tok

### Unsigned Tokens

The `generateToken` function generates a cryptographically secure random token encoded in base64url (128 bits).
The `generateToken` function generates a cryptographically secure random token encoded in base64url (256 bits).

```typescript
import { generateToken } from '@foal/core';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { generateToken } from './generate-token.util';

describe('generateToken', () => {

it('should generate a random base64url-encoded string which size is 128 bits.', async () => {
it('should generate a random base64url-encoded string which size is 256 bits.', async () => {
const token = await generateToken();

const buffer = Buffer.from(token, 'base64');
Expand Down

0 comments on commit 77adc83

Please sign in to comment.