- Home
- Getting Started
- Adding Mobile Solution Extensions
- Manually Uploading Bundles
- Debugging Solution Extensions Using Sourcemaps
- Using Existing Bearer Token For Upload
- Mobile Solution Extensions On Viya 3.5 (10.8)
If you already have access to a bearer token then you can use this token instead of supplying an admin username and password to upload the solution extension to the server.
To upload your solution extension using an existing bearer token you must ensure that your tooling packages meet the following minimum requirements:
| Package Name | Minimum Version |
|---|---|
| @sassoftware/vi-solution-extension-upload | 0.7 |
If you have created your workspace using the command
npx @sassoftware/vi-solution-extension-createand have chosen the option to use your own bearer token for upload then the .env file in the workspace should look like this
SVI_HOSTNAME=http://server-name.com
SVI_USERNAME=
SVI_PASSWORD=
SVI_BUNDLE_PATH=./dist/elements/main.js
SVI_BEARER_TOKEN=
Add the existing bearer token to the .env file and this will be used in the bundle upload process.
If the workspace has been created using an older version of the @sassoftware/vi-solution-extension-create create script then the SVI_BEARER_TOKEN variable may not be present in the .env file. This can be manually added at any point. As long as the @sassoftware/vi-solution-extension-upload package in the workspace is version 0.7 or higher, then the solution extension will work as expected.