Refactoring reset and session tokens, currently broken.

This commit is contained in:
Leo Vasanko
2025-07-14 16:10:02 -06:00
parent 19bcddca30
commit 225d7b7542
11 changed files with 786 additions and 330 deletions

View File

@@ -24,6 +24,9 @@ export async function registerCredential() {
export async function registerWithToken(token) {
return register('/auth/ws/add_device_credential', { token })
}
export async function registerWithSession() {
return register('/auth/ws/add_device_credential_session')
}
export async function authenticateUser() {
const ws = await aWebSocket('/auth/ws/authenticate')