andrewdwallo / erpsaas

A Laravel and Filament-powered accounting platform, crafting a modern and automated solution for financial management.
MIT License
851 stars 241 forks source link

Personal Access Tokens API not working as expected #39

Closed wejrcze closed 8 months ago

wejrcze commented 8 months ago

Hello, I'm trying to get API working, but i still get: { "message": "Unauthenticated." }

Can't find any information if it's implemented by default, o I have to implement it myself, thank you Andrew for your help.

andrewdwallo commented 8 months ago

The settings for sanctum probably need to be configured for your environment properly. I would make sure to follow all of the instructions here carefully.

wejrcze commented 8 months ago

The settings for sanctum probably need to be configured for your environment properly. I would make sure to follow all of the instructions here carefully.

Thank you, already managed that in Authenticate middleware(which only counts with web guard), where I auths sanctum guard properly ( /api/{panel}/{tenant}/route...

andrewdwallo commented 8 months ago

Okay sounds good! No problem.