- @override
Asks this instance to update an existing AuthToken
for server
.
This method must must update an existing AuthToken
, found by oldAccessToken
,
with the values newAccessToken
, newIssueDate
and newExpirationDate
.
Source
@override Future refreshTokenWithAccessToken( AuthServer server, String oldAccessToken, String newAccessToken, DateTime newIssueDate, DateTime newExpirationDate) { var query = new Query<ManagedToken>(context) ..where.accessToken = oldAccessToken ..values.accessToken = newAccessToken ..values.issueDate = newIssueDate ..values.expirationDate = newExpirationDate; return query.updateOne(); }