Skip to content

NEW @W-22178016@ Implement Org JWT Minting#462

Open
nikhil-mittal-165 wants to merge 2 commits into
devfrom
feature/apexguru-jwt-mint
Open

NEW @W-22178016@ Implement Org JWT Minting#462
nikhil-mittal-165 wants to merge 2 commits into
devfrom
feature/apexguru-jwt-mint

Conversation

@nikhil-mittal-165
Copy link
Copy Markdown
Contributor

No description provided.

@git2gus
Copy link
Copy Markdown

git2gus Bot commented May 5, 2026

Git2Gus App is installed but the .git2gus/config.json doesn't have right values. You should add the required configuration.

@nikhil-mittal-165 nikhil-mittal-165 changed the title apexguru jwt minting NEW @W-22178016@ Implement Org JWT Minting May 5, 2026
Comment on lines +107 to +111
async mintOrgJwt(featureId: string = 'VibesService'): Promise<string> {
const accessToken = this.getAccessToken();
const instanceUrl = this.getInstanceUrl();

const endpoint = `${instanceUrl}/ide/auth`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use variables for passing feature id and using endpoint rather than directly hard-coding.

this.emitLogEvent(LogLevel.Fine, 'Minting Org JWT for SFAP API access');

try {
const response = await fetch(endpoint, {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is boiler plate code we can consider moving to a helper file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants