Skip to content

Commit b945ca5

Browse files
use standard auth header
1 parent 87fa1dd commit b945ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/auth/src/android/PluginRetriever.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private static JSONArray fetchJsonArray(String urlString, String token) {
126126

127127
// Add auth header if token is present
128128
if (token != null && !token.isEmpty()) {
129-
conn.setRequestProperty("x-auth-token", token);
129+
conn.setRequestProperty("Authorization", "Bearer " + token);
130130
}
131131

132132
int code = conn.getResponseCode();

0 commit comments

Comments
 (0)