feat(auth/user): Finished User Rework to handle Guest
- Split userinfo APIs to their own service (`user`) - Added user service to nginx and docker-compose - Cleaned up package.json across the project to remove useless depedencies - Added word list for Guest username generation (source in file itself) - Reworked internal of `user` DB to not have a difference between "raw" id and normal ID (UUID)
This commit is contained in:
parent
7d0f5c11d6
commit
1cbd778131
24 changed files with 4273 additions and 46 deletions
|
|
@ -61,7 +61,7 @@ bOtpDisable.addEventListener('click', async () => {
|
|||
bWhoami.addEventListener('click', async () => {
|
||||
let username = '';
|
||||
try {
|
||||
const res = await fetch('/api/auth/whoami');
|
||||
const res = await fetch('/api/user/info/me');
|
||||
const json = await res.json();
|
||||
setResponse(json);
|
||||
if (json?.kind === 'success') {username = json?.payload?.name;}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue