---
title: "Discussion on \"Why OAuth Uses an Authorization Code Instead of Just Handing Over the Token\" | Hashnode"
description: "Discussion on \"Why OAuth Uses an Authorization Code Instead of Just Handing Over the Token\". Why the OAuth authorization code flow uses a two-step exchange instead of returning the token directly — a security walkthrough from building a server"
url: "https://hashnode.com/posts/why-oauth-uses-an-authorization-code-instead-of-just-handing-over-the-token/6a6e2b31c4bd335447bddcd5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why OAuth Uses an Authorization Code Instead of Just Handing Over the Token](https://littlegod.hashnode.dev/why-oauth-uses-an-authorization-code-instead-of-just-handing-over-the-token?utm_source=hashnode&utm_medium=feed)

Why the OAuth authorization code flow uses a two-step exchange instead of returning the token directly — a security walkthrough from building a server

Aug 1 · 5 min read · littlegod.hashnode.dev  
Read the article

-   [#oauth](https://hashnode.com/tag/oauth)
-   [#security](https://hashnode.com/tag/security)
-   [#backend](https://hashnode.com/tag/backend)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#authentication](https://hashnode.com/tag/authentication)

## Written by

[Theophilus Frimpong](https://hashnode.com/@littlegod)

@littlegod

  
[View profile](https://hashnode.com/@littlegod)

Software developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
