MCPcopy
hub / github.com/devias-io/material-kit-react / generateToken

Function generateToken

src/lib/auth/client.ts:5–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import type { User } from '@/types/user';
4
5function generateToken(): string {
6 const arr = new Uint8Array(12);
7 window.crypto.getRandomValues(arr);
8 return Array.from(arr, (v) => v.toString(16).padStart(2, '0')).join('');
9}
10
11const user = {
12 id: 'USR-000',

Callers 2

signUpMethod · 0.85
signInWithPasswordMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected