Commit c304c1b9 by G

getUserInformations request to retrieve the relevant informations about user.…

getUserInformations request to retrieve the relevant informations about user. check IuserInformations type for the response format.
parent 20e9e468
import axiosRequest from "../axios-request";
import { IuserInformations } from "./Types";
import base64 from 'react-native-base64';
const getUserInformations = async (userAccessToken : string) => {
const basictoken = base64.encode("admin:admin");
return await axiosRequest<IuserInformations>({
url: "/user-info/",
method: "GET",
headers: {
Authorization: `Basic ${basictoken}`
}
});
};
export default getUserInformations;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment