You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say you have an internal session based API on /api in your application, one would need to "log in" when running the command, especially if any of the validation rules use Auth::user().
A small local workaround by adding Auth::loginUsingId($userId) to SwaggerServiceProvider->boot() works, but is not very customizable. Would it be possible to add this as an auth option somehow?
The text was updated successfully, but these errors were encountered:
Description:
Say you have an internal session based API on
/api
in your application, one would need to "log in" when running the command, especially if any of the validation rules useAuth::user()
.A small local workaround by adding
Auth::loginUsingId($userId)
toSwaggerServiceProvider->boot()
works, but is not very customizable. Would it be possible to add this as an auth option somehow?The text was updated successfully, but these errors were encountered: