-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token check #4025
Token check #4025
Conversation
132f84a
to
9a8c03f
Compare
9a8c03f
to
383fd62
Compare
2741d4b
to
c7c182d
Compare
components/brave_rewards/browser/rewards_notification_service_impl.cc
Outdated
Show resolved
Hide resolved
c7c182d
to
ed0c654
Compare
vendor/bat-native-ledger/src/bat/ledger/internal/contribution/contribution_unblinded.cc
Outdated
Show resolved
Hide resolved
vendor/bat-native-ledger/src/bat/ledger/internal/ledger_client_mock.cc
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting on #4087 for iOS implementation.
vendor/bat-native-ledger/src/bat/ledger/internal/contribution/contribution_unblinded.cc
Outdated
Show resolved
Hide resolved
41c7fa0
to
f44ae4a
Compare
|
||
const uint64_t now = static_cast<uint64_t>(base::Time::Now().ToDoubleT()); | ||
|
||
return token->expires_at > 0 && token->expires_at < now; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: now should be checked with <=
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM++
f44ae4a
to
08a6e3d
Compare
Resolves brave/brave-browser#7022
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
covered with tests
Reviewer Checklist:
After-merge Checklist:
changes has landed on.