Skip to content

Commit d6ade12

Browse files
authored
Merge pull request #96 from auth0/deprecate-delete
Deprecate the 'device' method and document the alternative
2 parents b8a67e4 + c79c8f8 commit d6ade12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

guardian/src/main/java/com/auth0/android/guardian/sdk/GuardianAPIClient.java

+2
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ private String signJWT(@NonNull PrivateKey privateKey, @NonNull Map<String, Obje
289289
* @param id the device id
290290
* @param token the device token
291291
* @return an API client for the device
292+
* @deprecated Use {@link #device(String, String, PrivateKey)} to prefer JWT authentication.
292293
*/
294+
@Deprecated
293295
public DeviceAPIClient device(@NonNull String id, @NonNull String token) {
294296
return new DeviceAPIClient(requestFactory, baseUrl, id, token);
295297
}

0 commit comments

Comments
 (0)