- You have to create a new component that renders input fields for the username and the password. The component also contains a button that calls the /login endpoint when the button is pressed.
- The call from the login component is made using the POST method and a user object is embedded in the body. If the authentication succeeds, the backend sends the token back in the Authorization header.
- The token can be saved to session storage using the sessionStorage.setItem() method.
- The token has to be included in the request's Authorization header.
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand