mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-08 03:57:31 +00:00
Removing trailing ; from resource token which is incompatible with v2 tokens (#1962)
* Removing trailing ; from resource token which is incompatible with v2 tokens * Adding check in case resourceToken is undefined * Fixing unit tests
This commit is contained in:
@@ -30,6 +30,10 @@ export function parseResourceTokenConnectionString(connectionString: string): Pa
|
||||
}
|
||||
});
|
||||
|
||||
if (resourceToken && resourceToken.endsWith(";")) {
|
||||
resourceToken = resourceToken.substring(0, resourceToken.length - 1);
|
||||
}
|
||||
|
||||
return {
|
||||
accountEndpoint,
|
||||
collectionId,
|
||||
|
||||
Reference in New Issue
Block a user