private: removes collision check for tokens

this seems very unnecessary as the chance of this is 1 / 2^512

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-01-17 20:35:43 +01:00 committed by David Mehren
parent 97f7128355
commit 324ba71d24
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 10 additions and 26 deletions

View file

@ -22,7 +22,7 @@ export class AuthToken {
@CreateDateColumn()
createdAt: Date;
@Column()
@Column({ unique: true })
accessToken: string;
public static create(