diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-04-19 17:53:21 +0200 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-04-19 17:53:21 +0200 |
commit | 9b4ac5f9535c02d1ec8288a2b20bea4fd00ed53d (patch) | |
tree | 24cd4d36df5433092e8d29fcd51eb79dec96e77d /backend/api/api/Controllers/AuthController.cs | |
parent | 0af2ddb9f7fbdb48b043ae030709eac8def794bb (diff) |
Dodato da gost moze da resfresha jwtToken.Gost koristi isti api za refresh tokena kao ulogovan korisnik.
Diffstat (limited to 'backend/api/api/Controllers/AuthController.cs')
-rw-r--r-- | backend/api/api/Controllers/AuthController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/api/api/Controllers/AuthController.cs b/backend/api/api/Controllers/AuthController.cs index 901454e1..df8a514c 100644 --- a/backend/api/api/Controllers/AuthController.cs +++ b/backend/api/api/Controllers/AuthController.cs @@ -45,7 +45,7 @@ namespace api.Controllers } [HttpPost("renewJwt")] - [Authorize(Roles = "User")] + [Authorize(Roles = "User,Guest")] public async Task<ActionResult<string>> RenewJwt() { var authorization = Request.Headers[HeaderNames.Authorization]; |