Skip to content

Commit

Permalink
Auto refresh tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Sep 30, 2024
1 parent ac4f51a commit fd64f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/googleMapsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function reinstantiateTiles() {
localStorage.setItem( 'googleApiKey', params.apiKey );

tiles = new GooglePhotorealisticTilesRenderer();
tiles.registerPlugin( new GoogleCloudAuthPlugin( { apiToken: params.apiKey } ) );
tiles.registerPlugin( new GoogleCloudAuthPlugin( { apiToken: params.apiKey, autoRefreshToken: true } ) );
tiles.registerPlugin( new TileCompressionPlugin() );
tiles.registerPlugin( new UpdateOnChangePlugin() );
tiles.registerPlugin( new TilesFadePlugin() );
Expand Down
2 changes: 1 addition & 1 deletion example/ionLunar.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function reinstantiateTiles() {
localStorage.setItem( 'ionApiKey', params.apiKey );

tiles = new EllipsoidTilesRenderer( null, LUNAR_ELLIPSOID );
tiles.registerPlugin( new CesiumIonAuthPlugin( { apiToken: params.apiKey, assetId: '2684829' } ) );
tiles.registerPlugin( new CesiumIonAuthPlugin( { apiToken: params.apiKey, assetId: '2684829', autoRefreshToken: true } ) );
tiles.registerPlugin( new TileCompressionPlugin() );
tiles.registerPlugin( new UpdateOnChangePlugin() );
tiles.registerPlugin( new TilesFadePlugin() );
Expand Down

0 comments on commit fd64f40

Please sign in to comment.