<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/authentication-for-nextjs-with-graphql-rest-apis-and-ssr-server-side-rendering--xfqpljpwg" -->

---
title: Authentication for NextJS with GraphQL & REST APIs and...
description: Authentication should be easy to set up, low maintenance and not distracting the user. As a developer, I want to be able to log users into my application using...
canonical: https://daily.dev/posts/authentication-for-nextjs-with-graphql-rest-apis-and-ssr-server-side-rendering--xfqpljpwg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Authentication for NextJS with GraphQL & REST APIs and SSR (Server Side Rendering) | daily.dev
og:description: Authentication should be easy to set up, low maintenance and not distracting the user. As a developer, I want to be able to log users into my application using...
og:url: https://daily.dev/posts/authentication-for-nextjs-with-graphql-rest-apis-and-ssr-server-side-rendering--xfqpljpwg
og:image: https://api.daily.dev/og/posts/XfqpLjpWg.png
og:image:alt: Authentication for NextJS with GraphQL & REST APIs and SSR (Server Side Rendering)
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.

# Authentication for NextJS with GraphQL & REST APIs and SSR (Server Side Rendering)

**[WunderGraph](https://daily.dev/sources/wundergraph)** · 16 min read · 11 upvotes · 1 comments

## Summary

Authentication should be easy to set up, low maintenance and not distracting the user. As a developer, I want to be able to log users into my application using one or more external authentication providers. NextAuthJS, while looking great, adds authentication directly to your application.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://wundergraph-website.vercel.app/blog/authentication_for_nextjs_with_graphql_and_rest_apis_and_server_side_rendering>

## Community discussion

Top comments from developers on daily.dev.

**@sunejrn** · 0 upvotes

> Awesome

---

Tags: [#authentication](https://daily.dev/tags/authentication), [#github](https://daily.dev/tags/github), [#google](https://daily.dev/tags/google), [#webdev](https://daily.dev/tags/webdev), [#wundergraph](https://daily.dev/tags/wundergraph)

[View this post on daily.dev](https://daily.dev/posts/authentication-for-nextjs-with-graphql-rest-apis-and-ssr-server-side-rendering--xfqpljpwg)

```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":"Authentication for NextJS with GraphQL & REST APIs and SSR (Server Side Rendering)","url":"https://daily.dev/posts/authentication-for-nextjs-with-graphql-rest-apis-and-ssr-server-side-rendering--xfqpljpwg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/authentication-for-nextjs-with-graphql-rest-apis-and-ssr-server-side-rendering--xfqpljpwg"},"datePublished":"2022-07-28T09:23:55.424Z","dateModified":"2023-08-12T02:26:53.398Z","description":"Authentication should be easy to set up, low maintenance and not distracting the user. As a developer, I want to be able to log users into my application using...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/20317b14e794d8080f57a314ad770fdf","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/20317b14e794d8080f57a314ad770fdf","isAccessibleForFree":true,"articleSection":"WunderGraph","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":"WunderGraph","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1681654408/logos/WunderGraphs","url":"https://daily.dev/sources/wundergraph"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/authentication-for-nextjs-with-graphql-rest-apis-and-ssr-server-side-rendering--xfqpljpwg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"authentication,github,google,webdev,wundergraph","timeRequired":"PT16M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"WunderGraph","item":"https://daily.dev/sources/wundergraph"},{"@type":"ListItem","position":3,"name":"Authentication for NextJS with GraphQL & REST APIs and SSR (Server Side Rendering)"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/authentication-for-nextjs-with-graphql-rest-apis-and-ssr-server-side-rendering--xfqpljpwg","comment":[{"@type":"Comment","text":"Awesome","datePublished":"2024-10-24T00:27:16.850Z","url":"https://daily.dev/posts/XfqpLjpWg#c-FFKnxWbNz","author":{"@type":"Person","name":"Sune Kara","url":"https://daily.dev/sunejrn","image":"https://media.daily.dev/image/upload/s--o-ZYxcZE--/f_auto/v1790557081/avatars/avatar_WZuzNkauyx7KyvnTM4qva?_a=BAMAMicg0"}}]}
```

