---
title: "Manage and Authenticate Users with Netlify Identity"
description: "By the power of GoTrue you can use Netlify Identity to help gate content, add site administration, login with external OAuth providers, and more!"
source: "https://www.netlify.com/blog/2021/12/30/manage-and-authenticate-users-with-netlify-identity/"
last_updated: "2026-07-15T21:59:45.000Z"
---
“Authenticating users is a no-brainer”, said no one ever. Managing user data, creating a login process, setting roles, gating content, these things are hard. One of my favorite strategies in web app development is getting a leg up by having someone else do the hard part. After all, you can’t spell ‘delegation’ without ‘leg’.

[Netlify Identity](https://docs.netlify.com/visitor-access/identity/) lets us delegate a ton of authentication functionality:

-   the setup and infrastructure of storing user information, as well
-   login using external OAuth providers like GitHub, Google, GitLab, and Bitbucket
-   trigger serverless functions on validation, signup, or login events
-   generate custom emails
-   access and edit user information and roles
-   and more!

![screenshot of identity dashboard page](/v3/img/blog/identity.png)

Leveraging the open-source [GoTrue API](https://github.com/netlify/gotrue), Netlify Identity can be added to your site with the [Netlify Identity widget](https://github.com/netlify/netlify-identity-widget) by adding this `<script>` tag:

```
<head><script type="text/javascript" src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script></head>
```

then including the widget in the site template, like so:

```
 <!-- Add a menu:   Log in / Sign up - when the user is not logged in   Username / Log out - when the user is logged in  -->  <div data-netlify-identity-menu></div>
  <!-- Add a simpler button:    Simple button that will open the modal.  -->  <div data-netlify-identity-button>Login with Netlify Identity</div>
```

Put it all together and you get this lovely pop-up modal window where users can login or sign up!

![netlify identity login modal window](/v3/img/blog/screen-shot-2021-12-20-at-11.37.37-pm.png)

Check out the [Netlify Identity docs](https://docs.netlify.com/visitor-access/identity/) to learn more about everything you can do. I can’t wait to see (or not see if I’m not logged in) all the authentication functionality you create! Happy coding 👩🏻‍💻!

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=Manage and Authenticate Users with Netlify Identity&url=https://www.netlify.com/blog/2021/12/30/manage-and-authenticate-users-with-netlify-identity/)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2021%2F12%2F30%2Fmanage-and-authenticate-users-with-netlify-identity%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2021/12/30/manage-and-authenticate-users-with-netlify-identity/)
-   [Bluesky](https://bsky.app/intent/compose?text=Manage and Authenticate Users with Netlify Identity+https://www.netlify.com/blog/2021/12/30/manage-and-authenticate-users-with-netlify-identity/)

* * *

### Tags

-   [Netlify Identity](/blog/tags/netlify-identity/)

## Keep reading

![](/_astro/bbe3cfe0b5d5228f5d0a66e26ce057de315c7712-1200x675_ZQfk21.webp)

Tools & Services December 3, 2025

[

### Vibe coding to production with Kiro powers

](/blog/vibe-coding-production-kiro-powers)

-   ![Profile picture of Gehrig Kunz](/_astro/b4e9f58d914d1334ea70d53ea55a1f26b26f1445-512x512_17SwOI.webp)
    
    Gehrig Kunz
    

![](/_astro/b596a7453ede5fe6739bd12506636fe522828198-2400x1351_1ANtEG.webp)

Tools & Services February 21, 2025

[

### Secure local development with Codezero for Netlify

](/blog/secure-local-development-codezero)

-   Kathleen Randall
    

## Recent posts

News & Announcements July 14, 2026

[

### More headroom, a lower per-credit rate, and a bill you can predict: introducing new Pro plan tiers

](/blog/new-pro-plan-tiers)

-   ![Profile picture of Gehrig Kunz](/_astro/b4e9f58d914d1334ea70d53ea55a1f26b26f1445-512x512_17SwOI.webp)
    
    Gehrig Kunz
    

News & Announcements July 13, 2026

[

### Netlify inside of Claude Design

](/blog/netlify-inside-of-claude-design)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)