File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,15 @@ As the package relies on `expo-secure-store` you will need to create a new build
3232
3333Wrap your app with ` AuthProvider ` and pass the ` config ` object as a prop.
3434
35+ Make sure your validation rules, within your controller look like this:
36+ ``` php
37+ [
38+ 'email' => 'required|email',
39+ 'password' => 'required',
40+ 'deviceName' => 'required',
41+ ];
42+ ```
43+
3544``` js
3645import { AuthProvider } from ' react-native-laravel-sanctum' ;
3746
@@ -41,6 +50,7 @@ export default function App() {
4150 loginUrl: ' https://your-awesome-domain/api/sanctum/token' ,
4251 logoutUrl: ' https://your-awesome-domain/api/logout' ,
4352 userUrl: ' https://your-awesome-domain/api/user' ,
53+ csrfTokenUrl: ' https://your-awesome-domain/sanctum/csrf-cookie'
4454 };
4555
4656 return (
You can’t perform that action at this time.
0 commit comments