Skip to content

Commit

Permalink
Update modules/3d-tiles/src/lib/ion/ion.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ib Green <[email protected]>
  • Loading branch information
techtruth and ibgreen authored Oct 11, 2024
1 parent f462090 commit 5c41f9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/3d-tiles/src/lib/ion/ion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export async function getIonTilesetMetadata(accessToken, assetId) {

// Prepare a headers object for fetch
ionAssetMetadata.headers = {
Authorization: `Bearer ${accessToken}`
// Use provided accessToken if a new token is not provided in the ion response
Authorization: `Bearer ${ionAssetMetadata.accessToken || accessToken}`
};
return ionAssetMetadata;
}
Expand Down

0 comments on commit 5c41f9d

Please sign in to comment.