Software Engineer, Agent Auth
Software engineeringPosted 4 weeks agofrom Vercel's own hiring page
- Work type
- HybridNew York, San Francisco Bay Area
- Experience
- 3+ years
- Pay
- $196k–294k a year
- Posted
- 4 weeks ago
From the ad
On-call rotation
Participate in the on-call rotation, taking responsibility for the reliability of critical systems
Skills it mentions
Add your skills to see which ones you have.
About the job
About Vercel:
Vercel is the agentic infrastructure company, freeing people and agents to ship what's next. For more than a decade we've helped builders move from idea to production with speed, security, and exceptional developer experience.
Now we're scaling our products for both agents and people to ship and run software, built in the open and trusted by OpenAI, PayPal, Ramp, Supreme, and millions of developers worldwide.
About the role:
Agents are becoming first-class users of the internet. They sign in, call APIs, deploy code, and act on behalf of people and teams. That raises questions the web was never designed to answer: Who is this agent? Who does it work for? What is it allowed to do, for how long, and how do we know?
As an engineer on the Agent Auth and Identity team, you'll help answer those questions. You'll build the systems that let agents and people authenticate, delegate access, and act safely across Vercel and the services our customers connect to. This is foundational work: identity and authorization sit underneath everything we ship, and getting them right for agents will shape how modern software gets built.
The scope is intentionally broad. You might spend one quarter designing how credentials are issued and scoped for autonomous agents, and the next building the developer-facing APIs and SDKs that make secure auth feel effortless. You'll own systems end-to-end, from design through long-term operation in production.
We're looking for engineers who care deeply about security and developer experience in equal measure, enjoy working on problems without established playbooks, and want to define how trust works in an agentic world. This is a hybrid role based in San Francisco, in the office on Monday, Tuesday, and Friday.
What you'll do:
- Design, build, and operate the identity, authentication, and authorization systems that power Vercel and our Customers for both people and agents.
- Shape how agents prove who they are, act on behalf of users and teams, and receive scoped, time-bound, auditable access.
- Build secure, scalable APIs, services, and SDKs that make auth simple for developers and their agents to adopt.
- Work with modern and emerging standards (such as OAuth 2.x, OIDC, and agent-focused protocols) and help influence where they go next.
- Lead projects end-to-end: identify opportunities, set technical direction, and deliver improvements in security, reliability, and developer experience.
- Participate in the on-call rotation, taking responsibility for the reliability of critical systems.
What you need:
- 3+ years of experience designing, building, and operating backend systems in production at scale.
- Strong proficiency in JavaScript/TypeScript, or a comparable backend language and the willingness to work primarily in TypeScript.
- Solid understanding of authentication and authorization concepts, such as sessions, tokens, OAuth/OIDC flows, permission models, and secrets management.
- A security-minded approach to engineering: you think about threat models, least privilege, and failure modes as part of design, not as an afterthought.
Benefits & Compensation:
- Competitive compensation package, including equity.
- Inclusive Healthcare Package.
- Learn and Grow: we provide mentorship and send you to events that help you build your network and skills.
- Flexible Time Off.
- We will provide you the gear you need to do your role, and a WFH budget for you to outfit your space as needed.
The base pay range for this role is $196,000 – $294,000. Actual salary will be based on job-related skills, experience, and location. The total compensation package may include benefits, equity-based compensation, and eligibility for a company bonus or variable pay program depending on the role. Your recruiter can share more details during the hiring process.
Disclosures:
- Privacy: Please review our Job Applicant Privacy Policy for more information on how we handle your data.
- Equal Opportunity: Vercel is committed to fostering and empowering an inclusive community within our organization. We do not discriminate on the basis of race, religion, color, gender expression or identity, sexual orientation, national origin, citizenship, age, marital status, veteran status, disability status, or any other characteristic protected by law. Vercel encourages everyone to apply for our available positions, even if they don't necessarily check every box on the job description.
Interested?Software Engineer, Agent Auth at Vercel
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on TypeScript, JavaScript and Security
Interview questions for this job
For the skills the ad mentions: TypeScript, JavaScript and Security.
'unknown' vs. 'any'TypeScript
You can read more about
unknownin the PR or the RC announcement, but the gist of it is:[..] unknown which is the type-safe counterpart of any. Anything is assignable to unknown, but unknown isn't assignable to anything but itself and any without a type assertion or a control flow based narrowing. Likewise, no operations are permitted on an unknown without first asserting or narrowing to a more specific type.
A few examples:
let vAny: any = 10; // We can assign anything to any let vUnknown: unknown = 10; // We can assign anything to unknown just like any let s1: string = vAny; // Any is assignable to anything let s2: string = vUnknown; // Invalid; we can't assign vUnknown to any other type (without an explicit assertion) vAny.method(); // Ok; anything goes with any vUnknown.method(); // Not ok; we don't know anything about this variableThe suggested usage is:
There are often times where we want to describe the least-capable type in TypeScript. This is useful for APIs that want to signal “this can be any value, so you must perform some type of checking before you use it”. This forces users to safely introspect returned values.
From Stack Overflow: asked by Jac Mos, answered by Titian Cernicova-Dragomir (CC BY-SA 4.0)
Explain why the following doesn't work as an IIFE:
function foo(){ }();. What needs to be changed to properly make it an IIFE?JavaScriptIIFE stands for Immediately Invoked Function Expressions. The JavaScript parser reads
function foo(){ }();asfunction foo(){ }and();, where the former is a function declaration and the latter (a pair of parentheses) is an attempt at calling a function but there is no name specified, hence it throwsUncaught SyntaxError: Unexpected token ).Here are two ways to fix it that involve adding more parentheses:
(function foo(){ })()and(function foo(){ }()). Statements that begin withfunctionare considered to be function declarations; by wrapping this function within(), it becomes a function expression which can then be executed with the subsequent(). These functions are not exposed in the global scope and you can even omit its name if you do not need to reference itself within the body.You might also use
voidoperator:void function foo(){ }();. Unfortunately, there is one issue with such approach. The evaluation of given expression is alwaysundefined, so if your IIFE function returns anything, you can't use it. An example:const foo = void (function bar() { return 'foo'; })(); console.log(foo); // undefinedFrom Front End Interview Handbook (MIT)
What is token-based authentication?Security
I think it's well explained here -- quoting just the key sentences of the long article:
The general concept behind a token-based authentication system is simple. Allow users to enter their username and password in order to obtain a token which allows them to fetch a specific resource - without using their username and password. Once their token has been obtained, the user can offer the token - which offers access to a specific resource for a time period - to the remote site.
In other words: add one level of indirection for authentication -- instead of having to authenticate with username and password for each protected resource, the user authenticates that way once (within a session of limited duration), obtains a time-limited token in return, and uses that token for further authentication during the session.
Advantages are many -- e.g., the user could pass the token, once they've obtained it, on to some other automated system which they're willing to trust for a limited time and a limited set of resources, but would not be willing to trust with their username and password (i.e., with every resource they're allowed to access, forevermore or at least until they change their password).
If anything is still unclear, please edit your question to clarify WHAT isn't 100% clear to you, and I'm sure we can help you further.
From Stack Overflow: asked by csharpbaby, answered by Alex Martelli (CC BY-SA 2.5)
What is the syntax for Typescript arrow functions with generics?TypeScript
Edit
Per @Thomas comment, in newer TS compilers, we can simply do:
const foo = <T,>(x: T) => x;Original Answer
The full example explaining the syntax referenced by Robin... brought it home for me:
Generic functions
Something like the following works fine:
function foo<T>(x: T): T { return x; }However using an arrow generic function will not:
const foo = <T>(x: T) => x; // ERROR : unclosed `T` tagWorkaround: Use extends on the generic parameter to hint the compiler that it's a generic, e.g.:
const foo = <T extends unknown>(x: T) => x;From Stack Overflow: asked by Andreas Frische, answered by jbmilgrom (CC BY-SA 4.0)
How do JavaScript closures work?JavaScript
A closure is a pairing of:
- A function and
- A reference to that function's outer scope (lexical environment)
A lexical environment is part of every execution context (stack frame) and is a map between identifiers (i.e. local variable names) and values.
Every function in JavaScript maintains a reference to its outer lexical environment. This reference is used to configure the execution context created when a function is invoked. This reference enables code inside the function to "see" variables declared outside the function, regardless of when and where the function is called.
If a function was called by a function, which in turn was called by another function, then a chain of references to outer lexical environments is created. This chain is called the scope chain.
In the following code,
innerforms a closure with the lexical environment of the execution context created whenfoois invoked, closing over variablesecret:function foo() { const secret = Math.trunc(Math.random() * 100) return function inner() { console.log(`The secret number is ${secret}.`) } } const f = foo() // `secret` is not directly accessible from outside `foo` f() // The only way to retrieve `secret` is to invoke `f`In other words: in JavaScript, functions carry a reference to a private "box of state", to which only they (and any other functions declared within the same lexical environment) have access. This box of the state is invisible to the caller of the function, delivering an excellent mechanism for data-hiding and encapsulation.
And remember: functions in JavaScript can be passed around like variables (first-class functions), meaning these pairings of functionality and state can be passed around your program, similar to how you might pass an instance of a class around in C++.
If JavaScript did not have closures, then more states would have to be passed between functions explicitly, making parameter lists longer and code noisier.
So, if you want a function to always have access to a private piece of state, you can use a closure.
...and frequently we do want to associate the state with a function. For example, in Java or C++, when you add a private instance variable and a method to a class, you are associating the state with functionality.
In C and most other common languages, after a function returns, all the local variables are no longer accessible because the stack-frame is destroyed. In JavaScript, if you declare a function within another function, then the local variables of the outer function can remain accessible after returning from it. In this way, in the code above,
secretremains available to the function objectinner, after it has been returned fromfoo.Uses of Closures
Closures are useful whenever you need a private state associated with a function. This is a very common scenario - and remember: JavaScript did not have a class syntax until 2015, and it still does not have a private field syntax. Closures meet this need.
Private Instance Variables
In the following code, the function
toStringcloses over the details of the car.function Car(manufacturer, model, year, color) { return { toString() { return `${manufacturer} ${model} (${year}, ${color})` } } } const car = new Car('Aston Martin', 'V8 Vantage', '2012', 'Quantum Silver') console.log(car.toString())Functional Programming
In the following code, the function
innercloses over bothfnandargs.function curry(fn) { const args = [] return function inner(arg) { if(args.length === fn.length) return fn(...args) args.push(arg) return inner } } function add(a, b) { return a + b } const curriedAdd = curry(add) console.log(curriedAdd(2)(3)()) // 5Event-Oriented Programming
In the following code, function
onClickcloses over variableBACKGROUND_COLOR.const $ = document.querySelector.bind(document) const BACKGROUND_COLOR = 'rgba(200, 200, 242, 1)' function onClick() { $('body').style.background = BACKGROUND_COLOR } $('button').addEventListener('click', onClick)Read the rest at the sourceFrom Stack Overflow: asked by Bite code, answered by Joel Anair (CC BY-SA 4.0)
When have you faced a challenging situation?Behavioural
Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:
- when have you faced a challenging situation?
- can you tell us about a personal achievement at work?
- have you ever taken the initiative?
- have you ever failed at a task?
Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.
If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.
Use the STAR method to help structure your answers.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Member of Technical StaffClera, San Francisco Bay Area, on-siteToday
- Software Engineer, Safety Data FlywheelOpenAI, Remote, San Francisco Bay AreaYesterday
- Senior Staff Software EngineerFivetran, San Francisco Bay Area, hybridYesterday
- Senior Enterprise Applications EngineerMixpanel, San Francisco Bay Area, hybridYesterday
More like this: Software engineer jobs in New York (301), Jobs in New York (6,234) and Software engineer jobs in the USA (1,765)



