---
title: "Discussion on \"Token Storage Options And Patterns\" | Hashnode"
description: "Discussion on \"Token Storage Options And Patterns\". In this article we will have an overview of what are our options for storing tokens on public clients such as a Single Page Application (SPA). We will consider different things mostly in the context of access tokens and OAuth.\nToken-Aware Client\nWeb ..."
url: "https://hashnode.com/posts/token-storage-options-and-patterns/5fd63b2bf60e3973bae6c52d"
---

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

Discussion

# [Token Storage Options And Patterns](https://bostano.hashnode.dev/token-storage-options-and-patterns?utm_source=hashnode&utm_medium=feed)

In this article we will have an overview of what are our options for storing tokens on public clients such as a Single Page Application (SPA). We will consider different things mostly in the context of access tokens and OAuth. Token-Aware Client Web ...

Dec 13, 2020 · 11 min read · bostano.hashnode.dev  
Updated Jun 30, 2021  
Read the article

-   [#authentication](https://hashnode.com/tag/authentication)
-   [#authorization](https://hashnode.com/tag/authorization)
-   [#jwt](https://hashnode.com/tag/jwt)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Boris Stanojevic](https://hashnode.com/@bostano)

@bostano · Earth

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

Software Engineer | DeFi Enthusiast

Software Engineer | AI/ML Enthusiast Docendo discimus.

## Responses 1

Markdown supported · ⌘↵ to post

[Warren Parad](https://hashnode.com/@wparad)

[Dec 17, 2020](https://hashnode.com/posts/token-storage-options-and-patterns/5fd63b2bf60e3973bae6c52d/comment/5fdb87a6b78ac62dff80a012)

Adding this additional point of failure here doesn't seem to generate meaningful value, since you can accomplish the same thing by storing the access token as an **HttpOnly** cookie. As a matter of fact, this is exactly how [Authress](https://authress.io/) protects tokens, with the added benefit of no additional services in the middle.

[Boris Stanojevic](https://hashnode.com/@bostano)

[Dec 17, 2020](https://hashnode.com/posts/token-storage-options-and-patterns/5fd63b2bf60e3973bae6c52d/comment/5fdb87a6b78ac62dff80a012#reply-5fdb9774b78ac62dff80a21d)

Hey [Warren Parad](https://hashnode.com/@wparad), I thought about that while writing the article and I absolutely agree with you, but I wanted to put out some valid options.

Thanks for the comment!
