@@ -18,10 +18,9 @@ export const ADMIN_AUTH_SUCCESS = "ADMIN_AUTH_SUCCESS";
18
18
export const DELETE_PACKAGE_SUCCESS = "DELETE_PACKAGE_SUCCESS" ;
19
19
export const DELETE_PACKAGE_ERROR = "DELETE_PACKAGE_ERROR" ;
20
20
21
- export const adminAuth = ( uuid ) => async ( dispatch ) => {
21
+ export const adminAuth = ( accessToken ) => async ( dispatch ) => {
22
22
// Make an api call to authenticate admin
23
23
let formData = new FormData ( ) ;
24
- formData . append ( "uuid" , uuid ) ;
25
24
26
25
try {
27
26
let result = await axios ( {
@@ -30,6 +29,7 @@ export const adminAuth = (uuid) => async (dispatch) => {
30
29
data : formData ,
31
30
headers : {
32
31
"Content-Type" : "multipart/form-data" ,
32
+ Authorization : `Bearer ${ accessToken } ` ,
33
33
} ,
34
34
} ) ;
35
35
@@ -157,7 +157,7 @@ export const deleteNamespace = (namespace, uuid) => async (dispatch) => {
157
157
158
158
export const deletePackage =
159
159
( namespacename , packagename , uuid ) => async ( dispatch ) => {
160
- // Make an api call to delete package
160
+ // Make an api call to delete package
161
161
let formData = new FormData ( ) ;
162
162
163
163
formData . append ( "uuid" , uuid ) ;
@@ -204,7 +204,7 @@ export const deletePackage =
204
204
205
205
export const deleteRelease =
206
206
( namespace_name , package_name , version , uuid ) => async ( dispatch ) => {
207
- // Make an api call to delete package release
207
+ // Make an api call to delete package release
208
208
let formData = new FormData ( ) ;
209
209
210
210
formData . append ( "uuid" , uuid ) ;
0 commit comments