Poll session every minute to make sure we are still connected
modified src/lib/session.ts
@@ -4,6 +4,15 @@ interface Session {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -29,6 +38,38 @@ export async function authenticate(params: {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -43,8 +84,7 @@ export async function disconnect() {
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -52,6 +92,11 @@ function save(id: string, publicKey: string) {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -76,4 +121,17 @@ export function initialize() {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
modified src/lib/utils.ts
@@ -115,11 +115,6 @@ export function parseUsername(input: string): string {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|