Reintroduced wrongly removed (renamed) only `getAsBearer` method (as deprecated) to avoid dependents projects changes
This commit is contained in:
parent
7e035d24c2
commit
71a017c721
|
@ -65,6 +65,15 @@ public class JWTToken implements Serializable {
|
||||||
return (String) token.get("refresh_token");
|
return (String) token.get("refresh_token");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link #getAccessTokenAsBearer()} method instead
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Deprecated()
|
||||||
|
public String getAsBearer() {
|
||||||
|
return getAccessTokenAsBearer();
|
||||||
|
}
|
||||||
|
|
||||||
public String getAccessTokenAsBearer() {
|
public String getAccessTokenAsBearer() {
|
||||||
return "Bearer " + getAccessTokenString();
|
return "Bearer " + getAccessTokenString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue