<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/restricting-npm-bypass-2fa-granular-access-tokens-vh2dwd8rj" -->

---
title: Restricting npm bypass-2FA granular access tokens
description: npm granular access tokens (GATs) configured to bypass 2FA can no longer perform sensitive account, org, and package management actions — these now require an...
canonical: https://daily.dev/posts/restricting-npm-bypass-2fa-granular-access-tokens-vh2dwd8rj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Restricting npm bypass-2FA granular access tokens | daily.dev
og:description: npm granular access tokens (GATs) configured to bypass 2FA can no longer perform sensitive account, org, and package management actions — these now require an...
og:url: https://daily.dev/posts/restricting-npm-bypass-2fa-granular-access-tokens-vh2dwd8rj
og:image: https://api.daily.dev/og/posts/Vh2dwD8rj.png
og:image:alt: Restricting npm bypass-2FA granular access tokens
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Restricting npm bypass-2FA granular access tokens

**[GitHub Changelog](https://daily.dev/sources/github_updates)** · 2 min read · 0 upvotes · 0 comments

## Summary

npm granular access tokens (GATs) configured to bypass 2FA can no longer perform sensitive account, org, and package management actions — these now require an interactive 2FA challenge. Actions blocked include creating/deleting tokens, changing package access or maintainers, and managing org/team membership. This closes a major attack vector where a leaked bypass token could be used to take over an account. Looking ahead, 2FA-bypass tokens will also lose direct publish capability by January 2027, with npm recommending migration to trusted publishing (OIDC) or staged publishing.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.blog/changelog/2026-07-31-restricting-npm-bypass-2fa-granular-access-tokens>

## Similar posts on daily.dev

- [npm install-time security and GAT bypass2fa deprecation](https://daily.dev/posts/npm-install-time-security-and-gat-bypass2fa-deprecation-hwjz1gmag) · GitHub Changelog · 0 upvotes · 0 comments
- [npm Invalidates Granular Access Tokens as Mini Shai-Hulud Sw...](https://daily.dev/posts/npm-invalidates-granular-access-tokens-as-mini-shai-hulud-sw--owdaqagh8) · Socket · 8 upvotes · 2 comments
- [npm security update: Classic token creation disabled and granular token changes](https://daily.dev/posts/npm-security-update-classic-token-creation-disabled-and-granular-token-changes-ljsmxx0nk) · GitHub Changelog · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#authentication](https://daily.dev/tags/authentication), [#npm](https://daily.dev/tags/npm)

[View this post on daily.dev](https://daily.dev/posts/restricting-npm-bypass-2fa-granular-access-tokens-vh2dwd8rj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Restricting npm bypass-2FA granular access tokens","url":"https://daily.dev/posts/restricting-npm-bypass-2fa-granular-access-tokens-vh2dwd8rj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/restricting-npm-bypass-2fa-granular-access-tokens-vh2dwd8rj"},"datePublished":"2026-07-31T17:06:28.058Z","dateModified":"2026-07-31T18:46:57.383Z","description":"npm granular access tokens (GATs) configured to bypass 2FA can no longer perform sensitive account, org, and package management actions — these now require an...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1b9b332efbcc935a092f6373a82ee8c2?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1b9b332efbcc935a092f6373a82ee8c2?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"GitHub Changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"GitHub Changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/15004b7835da4d89b02b115871f0f6dc","url":"https://daily.dev/sources/github_updates"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/restricting-npm-bypass-2fa-granular-access-tokens-vh2dwd8rj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,authentication,npm","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"GitHub Changelog","item":"https://daily.dev/sources/github_updates"},{"@type":"ListItem","position":3,"name":"Restricting npm bypass-2FA granular access tokens"}]}
```

