# Equivalent functionality to webAuth.checkSession from auth0.js in auth0-angular for SSO

**URL:** <https://community.auth0.com/t/equivalent-functionality-to-webauth-checksession-from-auth0-js-in-auth0-angular-for-sso/60980>\
**Category:** Get Help\
**Tags:** auth0-angular, auth0js, sso, auth0\
**Created:** [April 12, 2021, 5:08pm UTC](https://community.auth0.com/t/equivalent-functionality-to-webauth-checksession-from-auth0-js-in-auth0-angular-for-sso/60980 "2021-04-12T17:08:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammadz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mohammadz/32/13482_2.png) [@mohammadz](https://community.auth0.com/u/mohammadz)\
**Post date:** [April 12, 2021, 5:08pm UTC](https://community.auth0.com/t/equivalent-functionality-to-webauth-checksession-from-auth0-js-in-auth0-angular-for-sso/60980/1 "2021-04-12T17:08:25Z")

</div>

- **Which SDK this is regarding:** - auth0-angular, auth0.js
- **SDK Version:** - auth0-angular@1.40.0, auth0.js@9.8.2
- **Platform Version:** - Node 10.19.0

Hi,

I was playing around with this [repo](https://github.com/auth0-samples/auth0-sso-sample) and my angular 10 app. I was able to get the samples from the repo to work and they work nicely. When I reviewed the code, I noticed there was [webAuth.checkSession](https://github.com/auth0-samples/auth0-sso-sample/blob/b509dd0ccf370242f15f8932a401151a0de77fc0/app1.com/app.js#L30) method that was hitting back to the decentralized auth0 api. I think this is really good for what I am trying to achieve for SSO. I have the following question. What is equivalent of doing the webAuth.checkSession in auth0-angular library? I’m trying to replicate the same SSO experience.

---

<div class="post-metadata">

**Author:** ![steve.hobbs](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/steve.hobbs/32/13234_2.png) [@steve.hobbs](https://community.auth0.com/u/steve.hobbs)\
**Post date:** [June 11, 2021, 9:35am UTC](https://community.auth0.com/t/equivalent-functionality-to-webauth-checksession-from-auth0-js-in-auth0-angular-for-sso/60980/2 "2021-06-11T09:35:57Z")

</div>

Hi @mohammadz, thanks for your patience here. There is no equivalent currently as the auth0-angular package is designed to completely manage this for you. It uses the [auth0-spa-js](https://github.com/auth0/auth0-spa-js) SDK under the hood (which _does_ have `checkSession` functionality) when the SDK initializes, but this in turn calls `getTokenSilently` under the hood to manage the refresh of ID/access tokens and rehydrate the user state.

In short, you shouldn’t _need_ to call this yourself when using `auth0-angular`.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![mohammadz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mohammadz/32/13482_2.png) [@mohammadz](https://community.auth0.com/u/mohammadz)\
**Post date:** [June 11, 2021, 3:59pm UTC](https://community.auth0.com/t/equivalent-functionality-to-webauth-checksession-from-auth0-js-in-auth0-angular-for-sso/60980/3 "2021-06-11T15:59:11Z")

</div>

Hi thanks for the answer.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 25, 2021, 11:24am UTC](https://community.auth0.com/t/equivalent-functionality-to-webauth-checksession-from-auth0-js-in-auth0-angular-for-sso/60980/4 "2021-06-25T11:24:11Z")

</div>

No worries, we’re here for you!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 25, 2021, 11:24am UTC](https://community.auth0.com/t/equivalent-functionality-to-webauth-checksession-from-auth0-js-in-auth0-angular-for-sso/60980/5 "2021-06-25T11:24:13Z")

</div>


