Skip to content
Dashboard

Custom OIDC Token Audiences

Link to headingWhy custom audiences?

Link to headingHow it works

import { awsCredentialsProvider } from '@vercel/oidc-aws-credentials-provider';
import { S3Client } from '@aws-sdk/s3-client';
const s3 = new S3Client({
region: 'us-east-1',
credentials: awsCredentialsProvider({
// The token's `aud` claim will be set to sts.amazonaws.com
audience: 'sts.amazonaws.com',
clientConfig: { region: 'us-east-1' },
}),
});

Ready to deploy?