()
| 656 | } |
| 657 | |
| 658 | private getNonce(): string { |
| 659 | let text = ''; |
| 660 | const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; |
| 661 | for (let i = 0; i < 32; i++) { |
| 662 | text += possible.charAt(Math.floor(Math.random() * possible.length)); |
| 663 | } |
| 664 | return text; |
| 665 | } |
| 666 | } |