# I am trying the SPA SDK Sample

**URL:** <https://community.auth0.com/t/i-am-trying-the-spa-sdk-sample/84919>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [June 10, 2022, 1:17am UTC](https://community.auth0.com/t/i-am-trying-the-spa-sdk-sample/84919 "2022-06-10T01:17:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yfujita](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yfujita/32/37753_2.png) [@yfujita](https://community.auth0.com/u/yfujita)\
**Post date:** [June 10, 2022, 1:17am UTC](https://community.auth0.com/t/i-am-trying-the-spa-sdk-sample/84919/1 "2022-06-10T01:17:53Z")

</div>

Hello.  
I am trying the SPA SDK Sample.  
The functions createAuth0Crient and Auth0.isAuthenticated are not enclosed in exception handling blocks.  
Do they not throw any exceptions?  
Where can I find the documentation about that?  
Thank you.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 16, 2022, 9:45pm UTC](https://community.auth0.com/t/i-am-trying-the-spa-sdk-sample/84919/3 "2022-06-16T21:45:27Z")

</div>

Hi @yfujita,

The documentation for that library can be found here:

[https://auth0.com/docs/libraries/auth0-single-page-app-sdk](https://auth0.com/docs/libraries/auth0-single-page-app-sdk)

and here:

> **[@auth0/auth0-spa-js](https://auth0.github.io/auth0-spa-js/)**
>
> Documentation for @auth0/auth0-spa-js

The first link mentions:

> You can also create the client directly using the `Auth0Client` constructor. This can be useful if:
> 
> - You wish to do custom error handling.

---

<div class="post-metadata">

**Author:** ![yfujita](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yfujita/32/37753_2.png) [@yfujita](https://community.auth0.com/u/yfujita)\
**Post date:** [June 17, 2022, 12:27am UTC](https://community.auth0.com/t/i-am-trying-the-spa-sdk-sample/84919/4 "2022-06-17T00:27:23Z")

</div>

The material you gave me I had already read.  
I have reread it and there is no mention of throwing exceptions.  
I understood this to mean that I should code under the assumption that exceptions are thrown.  
Thank you.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [May 11, 2023, 12:56pm UTC](https://community.auth0.com/t/i-am-trying-the-spa-sdk-sample/84919/5 "2023-05-11T12:56:47Z")

</div>


