Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

natew's avatar
Level 1

Sanctum - Storing the Token

I'm planning on using Laravel Sanctum to authenticate requests from a mobile application and as well as third parties.

When I authenticate the user and return them their Authorization token ($token->plainTextToken) to be used for future requests, do I need to be paranoid about storing this on the mobile device securely (as well as telling third parties to ensure they protect it adequately).

Or can I simply store it within the native storage / local storage without worrying about native storage encryption or other means to keep this token safe?

0 likes
3 replies
manasng2's avatar

@bugsysha No it does not answer how to store the token in the mobile application safely.

1 like

Please or to participate in this conversation.