why doesn't have rules validation for device token? #65
Unanswered
mylazuardy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i think there is need some device token validation when stored into my db.
when my api hit to create/update auth user device token is sent from mobile it can be manipulated by user or the token is not valid.
maybe i can make custom rules for my self. but if from larafirebase, it make my code more simple.
example:
$request->validate([ 'token' => ['required', 'fcm_device_token'] ])
Beta Was this translation helpful? Give feedback.
All reactions