mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-02 05:51:18 +00:00
f4620dff3afe1419d2ad53647d83bf817ecb97b3
Add auth.NewOptionalAuthMiddleware to run auth only when credentials are present (Authorization header or auth cookies). Use it on share consumption routes so public shares remain accessible unauthenticated, while authenticated callers can resolve account-scoped shares. This prevents a panic in share middleware when accountId was provided but the request wasn’t authenticated (nil reqctx.AuthenticatedUser type assertion).
Description
Languages
TypeScript
48.2%
Go
46.1%
JavaScript
1.7%
PLpgSQL
1.4%
CSS
1.2%
Other
1.4%