Skip to content

Conversation

@allisonc07
Copy link
Contributor

@allisonc07 allisonc07 commented Nov 30, 2023

For brands that require a virtual key to be registered on the vehicle in order to receive data and/or send commands to the vehicle, Smartcar will be sending back an additional query parameter, virutal_key_url, when redirecting back with the authorization code. This PR:

  1. includes the value of the virtual_key_url in the message that is postMessage'd back to the origin
  2. updates the interface of the onComplete to include a new parameter, virtualKeyUrl
  3. and passes the value of the virtualKeyUrl property on the message object to the onComplete function.

From there, the virtualKeyUrl can be used within the onComplete that is created by the developer, and passed onto the BE, etc. so that it can be sent to the appropriate vehicle owners.

@codecov
Copy link

codecov bot commented Nov 30, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8a13f06) 100.00% compared to head (3e102a1) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #80   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            9         9           
  Branches         2         2           
=========================================
  Hits             9         9           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@allisonc07 allisonc07 requested a review from a team November 30, 2023 16:37
@allisonc07 allisonc07 merged commit b937ca5 into master Dec 19, 2023
@allisonc07 allisonc07 deleted the add-virtual-key branch December 19, 2023 23:54
@smartcar-ci
Copy link

🎉 This PR is included in version 2.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants