Skip to content

Commit

Permalink
fix: meta_scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron committed Jan 29, 2024
1 parent c28340e commit 1952b9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ async function generateAuthToken (params = {}) {
ims_org_id: imsOrgId,
private_key: key.toString(),
meta_scopes: [
finalScopes
...finalScopes
]
}

Expand Down
2 changes: 1 addition & 1 deletion test/jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

jest.setTimeout(30000)
jest.setTimeout(30000)
2 changes: 1 addition & 1 deletion test/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('generateAuthToken', () => {
const token = 'my-token'
ims.getToken.mockResolvedValue(token)
await expect(generateAuthToken(inputs)).resolves.toEqual(token)
expect(ims.context.set).toHaveBeenCalledWith('genToken', {}, true)
expect(ims.context.set).toHaveBeenCalledWith('genToken', expect.objectContaining({ meta_scopes: ['ent_adobeio_sdk'] }), true)
})

test('scopes input is not parseable json', async () => {
Expand Down

0 comments on commit 1952b9e

Please sign in to comment.