Auth tokens back to simple strings as private key used for token refresh which not doing

This commit is contained in:
simojenki
2021-02-26 12:36:43 +11:00
parent 57cecad469
commit 0cb02707f1
5 changed files with 9 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ export class InMemoryMusicService implements MusicService {
password != undefined &&
this.users[username] == password
) {
return { authToken: { value: "token123", version: "1" }, userId: username, nickname: username };
return { authToken: "v1:token123", userId: username, nickname: username };
} else {
return { message: `Invalid user:${username}` };
}