├── .editorconfig ├── .gitattributes ├── .github ├── actions │ └── setup │ │ └── action.yml └── workflows │ └── ci.yml ├── .gitignore ├── .nvmrc ├── .watchmanconfig ├── .yarnrc ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── babel.config.js ├── example ├── .gitignore ├── App.js ├── app.json ├── assets │ ├── adaptive-icon.png │ ├── favicon.png │ ├── icon.png │ └── splash.png ├── babel.config.js ├── metro.config.js ├── package.json ├── src │ └── App.tsx ├── tsconfig.json ├── webpack.config.js └── yarn.lock ├── lefthook.yml ├── package.json ├── scripts └── bootstrap.js ├── src ├── __tests__ │ └── index.test.tsx ├── contexts │ ├── AuthContext.ts │ └── AuthProvider.tsx ├── hooks │ └── useAuth.ts ├── index.tsx ├── interfaces │ ├── AuthConfig.ts │ ├── AuthContextType.ts │ ├── AuthProviderProps.ts │ ├── AuthResponse.ts │ └── User.ts ├── services │ └── AuthService.ts └── utils │ ├── TokenStorage.native.ts │ └── TokenStorage.ts ├── tsconfig.build.json ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/actions/setup/action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/.github/actions/setup/action.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v18 2 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/.yarnrc -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/babel.config.js -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | web-build 2 | -------------------------------------------------------------------------------- /example/App.js: -------------------------------------------------------------------------------- 1 | export { default } from './src/App'; 2 | -------------------------------------------------------------------------------- /example/app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/app.json -------------------------------------------------------------------------------- /example/assets/adaptive-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/assets/adaptive-icon.png -------------------------------------------------------------------------------- /example/assets/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/assets/favicon.png -------------------------------------------------------------------------------- /example/assets/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/assets/icon.png -------------------------------------------------------------------------------- /example/assets/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/assets/splash.png -------------------------------------------------------------------------------- /example/babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/babel.config.js -------------------------------------------------------------------------------- /example/metro.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/metro.config.js -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/package.json -------------------------------------------------------------------------------- /example/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/src/App.tsx -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/tsconfig.json -------------------------------------------------------------------------------- /example/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/webpack.config.js -------------------------------------------------------------------------------- /example/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/example/yarn.lock -------------------------------------------------------------------------------- /lefthook.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/lefthook.yml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/package.json -------------------------------------------------------------------------------- /scripts/bootstrap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/scripts/bootstrap.js -------------------------------------------------------------------------------- /src/__tests__/index.test.tsx: -------------------------------------------------------------------------------- 1 | it.todo('write a test'); 2 | -------------------------------------------------------------------------------- /src/contexts/AuthContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/contexts/AuthContext.ts -------------------------------------------------------------------------------- /src/contexts/AuthProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/contexts/AuthProvider.tsx -------------------------------------------------------------------------------- /src/hooks/useAuth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/hooks/useAuth.ts -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/index.tsx -------------------------------------------------------------------------------- /src/interfaces/AuthConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/interfaces/AuthConfig.ts -------------------------------------------------------------------------------- /src/interfaces/AuthContextType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/interfaces/AuthContextType.ts -------------------------------------------------------------------------------- /src/interfaces/AuthProviderProps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/interfaces/AuthProviderProps.ts -------------------------------------------------------------------------------- /src/interfaces/AuthResponse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/interfaces/AuthResponse.ts -------------------------------------------------------------------------------- /src/interfaces/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/interfaces/User.ts -------------------------------------------------------------------------------- /src/services/AuthService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/services/AuthService.ts -------------------------------------------------------------------------------- /src/utils/TokenStorage.native.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/utils/TokenStorage.native.ts -------------------------------------------------------------------------------- /src/utils/TokenStorage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/src/utils/TokenStorage.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tschucki/react-native-laravel-sanctum/HEAD/yarn.lock --------------------------------------------------------------------------------