Skip to content

Commit

Permalink
Persist authorization after refresh (#378)
Browse files Browse the repository at this point in the history
* feature-persist-authorization-after-refresh

* Update resources/views/index.blade.php

Co-authored-by: Darius Matulionis <darius@matulionis.lt>

* persistAuthorization changed to boolean in view file
blank line added after persist_authorization

Co-authored-by: Darius Matulionis <darius@matulionis.lt>
  • Loading branch information
PouriaSeyfi and DarkaOnLine authored May 7, 2021
1 parent 7ccee68 commit 6ad78b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions config/l5-swagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@
*/
'validator_url' => null,

/*
* Persist authorization login after refresh browser
*/
'persist_authorization' => true,

/*
* Uncomment to add constants which can be used in annotations
*/
Expand Down
4 changes: 3 additions & 1 deletion resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
layout: "StandaloneLayout",
persistAuthorization: {!! config('l5-swagger.defaults.persist_authorization') ? 'true' : 'false' !!},
})
window.ui = ui
Expand Down

0 comments on commit 6ad78b6

Please sign in to comment.