Replies: 1 comment
-
@coloralp should be fixed in https://github.com/dedoc/scramble/releases/tag/v0.8.5, please check it out. Feel free to re-open discussion if not fixed. |
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 have a project as SPA project . I can see docs when write 'docs/api' but after when ı try to get data with token(I m using sanctum)
ı faced Unauthenticated error .
I added this code to provider file
Scramble::extendOpenApi(function (OpenApi $openApi) {
$openApi->secure(
SecurityScheme::http('bearer')
);
});
I checked header when ı try to send request
Token goes like in header part(Authorization: Bearer $bearerToken)
In addition when ı try to send same request with POSTMAN with same token header part same request is success ı can take the data with token
Beta Was this translation helpful? Give feedback.
All reactions