Replies: 1 comment
-
Hey @thetheago , sorry for such a late response! Summer vacations 😄 In order to provide a Bearer token for authentication, you'll need to publish the Log Viewer layout and modify the headers. Because it's a Blade template, you can simply enter the bearer token like so: <script>
window.LogViewer = @json($logViewerScriptVariables);
// Add additional headers for LogViewer requests like so:
window.LogViewer.headers['Authorization'] = 'Bearer {{ $user->bearerToken() }}';
</script> Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to make a validation with LogViewerAuthMiddleware, where I check if my auth()->user() is logged through the barrer token, but when I type localhost/log-viewer I dont have this token.
I found a way to validate, making a button in my aplication (in react) that do a fetch to my /log-viewer passing the token, but the page is returned as a html+js response and I cannot render it, someone have an ideia that how could I do this?
Beta Was this translation helpful? Give feedback.
All reactions