5 months ago

How to get token key without user name and password ?

Posted 5 months ago by GodziLaravel

Hello ,

Let me first explain my case :

I installed Laravel passport and now i'm able to get the token key to POST, GET,DELETE .... without any issues ,

In my project I have to send GPS coordinates to the server (Laravel passport) from a Raspberry pi device.

I installed a cron job in this device to execute a python code every minute to POST coordinates to the server.

My question is : should I login then get the token every time when I POST the coordinates to the server? or there is a way to have a static token which I can store it in the raspberry ?


Please sign in or create an account to participate in this conversation.