Changing AuthToken to be complex type so can have a version, rather than just a string

This commit is contained in:
simojenki
2021-02-25 13:55:45 +11:00
parent f295d3f015
commit c1e64dfc32
6 changed files with 17 additions and 11 deletions

View File

@@ -1,7 +1,12 @@
import { v4 as uuid } from 'uuid';
export type AuthToken = {
value: string,
version: string
}
export type Association = {
authToken: string
authToken: AuthToken
userId: string
nickname: string
}