Skip to content

Commit 513a071

Browse files
committed
Auto refresh token in example
1 parent 3923e90 commit 513a071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/three/ionExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function reinstantiateTiles() {
6868
localStorage.setItem( 'ionApiKey', params.ionAccessToken );
6969

7070
tiles = new TilesRenderer();
71-
tiles.registerPlugin( new CesiumIonAuthPlugin( { apiToken: params.ionAccessToken, assetId: params.ionAssetId } ) );
71+
tiles.registerPlugin( new CesiumIonAuthPlugin( { apiToken: params.ionAccessToken, assetId: params.ionAssetId, autoRefreshToken: true, } ) );
7272
tiles.addEventListener( 'load-root-tileset', () => {
7373

7474
// because ion examples typically are positioned on the planet surface we can orient

0 commit comments

Comments
 (0)