# Integrate auth0 spa with react typescript application

**URL:** <https://community.auth0.com/t/integrate-auth0-spa-with-react-typescript-application/32824>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [October 24, 2019, 3:13pm UTC](https://community.auth0.com/t/integrate-auth0-spa-with-react-typescript-application/32824 "2019-10-24T15:13:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yasith\_perera](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yasith_perera/32/16961_2.png) [@yasith\_perera](https://community.auth0.com/u/yasith_perera)\
**Post date:** [October 24, 2019, 3:13pm UTC](https://community.auth0.com/t/integrate-auth0-spa-with-react-typescript-application/32824/1 "2019-10-24T15:13:30Z")

</div>

I want to add auth0 login to a react typescript application. I tried the below method but it looks like there is no typescript implementation of `react-auth0-spa.js`. Can someone advise me what is the best way to add authentication using Auth0 for a typescript react app?

[Add Login to Your React Application - Auth0 Docs](https://auth0.com/docs/quickstart/spa/react)

---

<div class="post-metadata">

**Author:** ![dan-auth0](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@dan-auth0](https://community.auth0.com/u/dan-auth0)\
**Post date:** [January 3, 2022, 5:27pm UTC](https://community.auth0.com/t/integrate-auth0-spa-with-react-typescript-application/32824/2 "2022-01-03T17:27:50Z")

</div>

Howdy! I just found this issue. At this time, the recommendation is to use the new Auth0 React SDK to integrate Auth0 authentication with a React SPA.

You can consult these code samples to see the integration of Auth0, React, and TypeScript! 💪

> **[React Code Samples: SPA Security in Action](https://developer.auth0.com/resources/code-samples/spa/react)**
>
> Learn how to add user authentication to React applications built with JavaScript.
