Skip to content

Commit

Permalink
Merge branch 'master' into v5-0-0
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicPoullain committed Aug 26, 2024
2 parents 6c23242 + b5d2399 commit bdf395c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docs/docs/authentication/user-class.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ import { User } from './src/app/entities';
async function main() {
const user = new User();
user.foo = 1;
await user.save(); 1
});
await user.save();
}
```

Expand Down
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 bdf395c

Please sign in to comment.