we still can't swap the token live

pull/32571/head
Shane Smiskol 1 year ago
parent 92790ea682
commit 75d4106415
  1. 3
      selfdrive/ui/qt/maps/map_helpers.cc

@ -12,7 +12,8 @@
#include "selfdrive/ui/qt/api.h" #include "selfdrive/ui/qt/api.h"
QString get_mapbox_token() { QString get_mapbox_token() {
return MAPBOX_TOKEN.isEmpty() ? CommaApi::create_jwt({}) : MAPBOX_TOKEN; // Valid for 4 weeks since we can't swap tokens on the fly
return MAPBOX_TOKEN.isEmpty() ? CommaApi::create_jwt({}, 4 * 7 * 24 * 3600) : MAPBOX_TOKEN;
} }
QMapLibre::Settings get_mapbox_settings() { QMapLibre::Settings get_mapbox_settings() {

Loading…
Cancel
Save