-
Notifications
You must be signed in to change notification settings - Fork 2
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
Delete teslaAuth tokens from cache after persisting to kafka and db #272
Conversation
…akeUpVehicle for new fleet API, generate swagger schema
if apiVersion == constants.TeslaAPIV2 { // If version is 2, we are using fleet api which has token stored in cache | ||
deviceIntReq, err := udc.getTeslaAuthFromCache(c.Context(), ud.UserID) | ||
user, err := udc.usersClient.GetUser(c.Context(), &pb.GetUserRequest{Id: ud.UserID}) |
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.
Okay, we're moving this up in order to provide nicer messages.
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.
Not really, Its because I need the cache key for deletion and its formed using the user eth address. But that is also a good point, I will use it.
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.
2 🐦 1 🪨
if apiVersion == constants.TeslaAPIV2 { // If version is 2, we are using fleet api which has token stored in cache | ||
deviceIntReq, err := udc.getTeslaAuthFromCache(c.Context(), ud.UserID) | ||
user, err := udc.usersClient.GetUser(c.Context(), &pb.GetUserRequest{Id: ud.UserID}) |
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.
2 🐦 1 🪨
Proposed Changes
Impacted Routes
Caveats