()
| 6 | import logger from '../logger' |
| 7 | |
| 8 | const getNonce = (): string => { |
| 9 | let text = '' |
| 10 | const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' |
| 11 | for (let i = 0; i < 32; i++) { |
| 12 | text += possible.charAt(Math.floor(Math.random() * possible.length)) |
| 13 | } |
| 14 | return text |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * render |