issue 100% resolve
The issue with Laravel Sanctum returning an unauthorized error can occur because the Authorization header is not correctly passed through to the application when using Apache. Adding specific rules to your .htaccess file can ensure the header is properly handled.
.htaccess file added
# Ensure the Authorization header is passed to PHP
RewriteCond %{HTTP:Authorization} ^(.+)$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
please any help contact email : [email protected]