@@ -3,7 +3,7 @@ import axios_instance from 'axios'
3
3
4
4
// Get OAuth2 Configuration
5
5
export const fetchServerConfiguration = async ( ) => {
6
- return await axios
6
+ return axios
7
7
. get ( '/oauth2/config' )
8
8
. then ( ( response ) => response . data )
9
9
. catch ( ( error ) => {
@@ -17,7 +17,7 @@ export const fetchServerConfiguration = async () => {
17
17
18
18
// get user location and ip
19
19
export const getUserIpAndLocation = async ( ) => {
20
- return await axios_instance
20
+ return axios_instance
21
21
. get ( 'https://geolocation-db.com/json/' )
22
22
. then ( ( response ) => response . data )
23
23
. catch ( ( error ) => {
@@ -28,7 +28,7 @@ export const getUserIpAndLocation = async () => {
28
28
29
29
// Retrieve user information
30
30
export const fetchUserInformation = async ( code ) => {
31
- return await axios
31
+ return axios
32
32
. post ( '/oauth2/user-info' , {
33
33
code : code ,
34
34
} )
@@ -44,7 +44,7 @@ export const fetchUserInformation = async (code) => {
44
44
45
45
// post user action
46
46
export const postUserAction = async ( userAction ) => {
47
- return await axios
47
+ return axios
48
48
. post ( '/logging/audit' , {
49
49
headers : {
50
50
'Content-Type' : 'application/json' ,
@@ -57,7 +57,7 @@ export const postUserAction = async (userAction) => {
57
57
58
58
// Get API Access Token
59
59
export const fetchApiAccessToken = async ( jwt ) => {
60
- return await axios
60
+ return axios
61
61
. get ( '/oauth2/api-protection-token' , { params : { ujwt : jwt } } )
62
62
. then ( ( response ) => response . data )
63
63
. catch ( ( error ) => {
@@ -71,7 +71,7 @@ export const fetchApiAccessToken = async (jwt) => {
71
71
72
72
// Check License present
73
73
export const checkLicensePresent = async ( ) => {
74
- return await axios
74
+ return axios
75
75
. get ( '/license/checkLicense' )
76
76
. then ( ( response ) => response . data )
77
77
. catch ( ( error ) => {
@@ -83,7 +83,7 @@ export const checkLicensePresent = async () => {
83
83
// Activate license using key
84
84
export const activateLicense = async ( licenseKey ) => {
85
85
let data = { licenseKey : licenseKey }
86
- return await axios
86
+ return axios
87
87
. post ( '/license/activateLicense' , data , {
88
88
headers : {
89
89
'Content-Type' : 'application/json' ,
0 commit comments