fix: token exposed on view/[id]

This commit is contained in:
diced 2023-03-26 12:14:41 -07:00
parent 67b71ceffe
commit d379bf8b1c
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -216,6 +216,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
});
delete user.password;
delete user.totpSecret;
delete user.token;
// @ts-ignore workaround because next wont allow date
file.createdAt = file.createdAt.toString();