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
32
32
33
33
Wrap your app with ` AuthProvider ` and pass the ` config ` object as a prop.
34
34
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
+
35
44
``` js
36
45
import { AuthProvider } from ' react-native-laravel-sanctum' ;
37
46
@@ -41,6 +50,7 @@ export default function App() {
41
50
loginUrl: ' https://your-awesome-domain/api/sanctum/token' ,
42
51
logoutUrl: ' https://your-awesome-domain/api/logout' ,
43
52
userUrl: ' https://your-awesome-domain/api/user' ,
53
+ csrfTokenUrl: ' https://your-awesome-domain/sanctum/csrf-cookie'
44
54
};
45
55
46
56
return (
You can’t perform that action at this time.
0 commit comments