Admin is checked in localstorage to know if the user can search for torrents or not. This currently does not work because /login looks for a admin property in the response, but the admin property is sent via the JWT token.
Change login function to decode (base64) JWT token and look for the admin and username property there.
Admin is checked in localstorage to know if the user can search for torrents or not. This currently does not work because /login looks for a admin property in the response, but the admin property is sent via the JWT token.
Change login function to decode (base64) JWT token and look for the admin and username property there.