
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
okta-cognito-graphql-client
Advanced tools
Read more about [what it does here](https://github.com/jsphweid/okta-cognito-clients/).
Read more about what it does here.
Install:
npm install --save okta-cognito-graphql-client
Use:
import { oktaCognitoGraphqlClientGenerator } from 'okta-cognito-graphql-client'
const client = oktaCognitoGraphqlClientGenerator({
graphqlBaseUrl: 'https://mygraphqlendpoint.com/graphql',
awsConfig: {
cognitoClientId: '123',
cognitoBaseUrl: 'https://my-cognito.auth.us-east-1.amazoncognito.com',
redirectUrl: `https://my-base-app-url.com`
}
})
This gives you a pre-configured Apollo Client. Use it like you would any other Apollo Client.
Also, at some point during a login flow, you'll get a code in your url that needs to be used to fetch and set real JWTs. There is already a method on the client to handle this async function:
const code = getQueryParamValue('code') // '123-456-etc'
client.setTokens(code).then(() => console.log('tokens set!'))
I'm sure this can be improved but for now this is the way to do it.
FAQs
Read more about [what it does here](https://github.com/jsphweid/okta-cognito-clients/).
We found that okta-cognito-graphql-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.