diff --git a/freechat-client/src/types.ts b/freechat-client/src/types.ts index e960fbe..bb2c83c 100644 --- a/freechat-client/src/types.ts +++ b/freechat-client/src/types.ts @@ -61,15 +61,15 @@ export class ServerConfig { } export class UserConfig { - id: Number + id: String jwt: String|null - permissions: Number + permissions: String secret: String constructor(json: Object) { - this.id = json['id'] + this.id = `${json['id']}` this.jwt = json['jwt'] - this.permissions = json['permissions'] + this.permissions = `${json['permissions']}` this.secret = json['secret'] } }