Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beasy-mobile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
G
beasy-mobile
Commits
9ee4e0f4
Commit
9ee4e0f4
authored
Jul 01, 2024
by
G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting
parent
fa754b4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
userInformations.ts
src/utils/requests/userInformations.ts
+13
-15
No files found.
src/utils/requests/userInformations.ts
View file @
9ee4e0f4
import
{
LOG
}
from
"@logger"
;
import
{
LOG
}
from
"@logger"
;
import
base64
from
'react-native-base64'
;
import
base64
from
"react-native-base64"
;
import
axiosRequest
from
"../axios-request"
;
import
axiosRequest
from
"../axios-request"
;
import
{
IuserInformations
}
from
"./Types"
;
import
type
{
IuserInformations
}
from
"./Types"
;
const
log
=
LOG
.
extend
(
"getUserInformations"
);
const
log
=
LOG
.
extend
(
"getUserInformations"
);
const
getUserInformations
=
async
(
userAccessToken
:
string
)
=>
{
const
getUserInformations
=
async
(
userAccessToken
:
string
)
=>
{
log
.
http
(
"getUserInformations"
,
userAccessToken
);
log
.
http
(
"getUserInformations"
,
userAccessToken
);
const
basictoken
=
base64
.
encode
(
"admin:admin"
);
const
basictoken
=
base64
.
encode
(
"admin:admin"
);
log
.
http
(
"basictoken"
,
basictoken
);
log
.
http
(
"basictoken"
,
basictoken
);
const
response
=
await
axiosRequest
<
IuserInformations
>
({
const
response
=
await
axiosRequest
<
IuserInformations
>
({
url
:
"/user-info/"
,
url
:
"/user-info/"
,
method
:
"GET"
,
method
:
"GET"
,
headers
:
{
headers
:
{
Authorization
:
`Basic
${
basictoken
}
`
// biome-ignore lint/style/useNamingConvention: <Header>
}
Authorization
:
`Basic
${
basictoken
}
`
,
},
});
});
log
.
http
(
JSON
.
stringify
(
response
,
null
,
2
));
log
.
http
(
JSON
.
stringify
(
response
,
null
,
2
));
return
response
;
return
response
;
};
};
export
default
getUserInformations
;
export
default
getUserInformations
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment