Skip to content

Commit 20db382

Browse files
committed
Update README.md file
1 parent 436060a commit 20db382

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818

1919
## About
2020

21-
This repository was created in order to assist in the process of implementing **authentication in React JS applications**. All components and contexts have unit tests and a **basic HTML structure without CSS**. The structure has resources to protect routes and control the visibility of components based on permissions, the entire process for the implementation is found in this document.
21+
This repository was created to assist in the authentication implementation process in React **JS applications with JWT and refresh token**. All components and contexts have **unit tests** and a **basic HTML structure without CSS**. The project has features to **secure routes** and **control the visibility of components** based on permissions, the entire implementation process is in this document.
22+
23+
Feel free to clone the project or use it as a template and make any changes you deem necessary.
2224

2325
## Built Using
2426

@@ -97,6 +99,22 @@ yarn test:coverage:watch
9799
npm run test:coverage:watch
98100
```
99101

102+
## Test users
103+
104+
The app is integrated with the [node-api-refresh-token.herokuapp.com](https://node-api-refresh-token.herokuapp.com) API, configured in the `.env` file. There are two users with different accesses so that the tests can be performed:
105+
106+
### Administrator
107+
108+
- **Email**: admin@site.com
109+
- **Password**: password@123
110+
- **Permissions**: `users.list`, `users.create`, `metrics.list`
111+
112+
### Client
113+
114+
- **Email**: client@site.com
115+
- **Password**: password@123
116+
- **Permissions**: `metrics.list`
117+
100118
## Route types
101119

102120
The route components are based on `<Route />` component of [react-router-dom](https://reactrouter.com/web/guides/quick-start) and receive same props.

0 commit comments

Comments
 (0)