# Use Auth0 after user authenticated via 3rd party

**URL:** <https://community.auth0.com/t/use-auth0-after-user-authenticated-via-3rd-party/185845>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [April 23, 2025, 2:01pm UTC](https://community.auth0.com/t/use-auth0-after-user-authenticated-via-3rd-party/185845 "2025-04-23T14:01:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![self.magurean](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/self.magurean/32/74436_2.png) [@self.magurean](https://community.auth0.com/u/self.magurean)\
**Post date:** [April 23, 2025, 2:01pm UTC](https://community.auth0.com/t/use-auth0-after-user-authenticated-via-3rd-party/185845/1 "2025-04-23T14:01:05Z")

</div>

I’d like to understand, if its possible to use Auth0 when my user already authenticated through 3rd party provider and I already got unique user id, which I save to my db and this unique id is connected to my user. Now I want to secure all api requests to my server with accesstokens and refresh tokens, how can I do that with auth0?

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [April 23, 2025, 4:48pm UTC](https://community.auth0.com/t/use-auth0-after-user-authenticated-via-3rd-party/185845/3 "2025-04-23T16:48:07Z")

</div>

Hi @self.magurean

Welcome to the Auth0 Community!

If you are authenticating users with a 3rd party provider through your own user store, you can integrate your[own database](https://auth0.com/docs/authenticate/database-connections/custom-db) within Auth0 so that users authenticate and register users against it. Also, if you want to authenticate users directly within Auth0 from your 3rd party provider, you can also set up a custom [social connection](https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/oauth2) or even an [OIDC](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/oidc)/[SAML](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/saml) connection to the provider itself. However, please keep in mind that both the custom db connection and enterprise connection would require you to have a Professional or Enterprise plan. You can learn more about these plans on our [pricing](https://auth0.com/pricing) page.

Otherwise, you can [register the users](https://auth0.com/docs/api/management/v2/users/post-users) to Auth0 from your custom db by making a request to the Management API and then authenticate them using the [Resource Owner Password Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow) to retrieve an access token, ID token and refresh token from Auth0.

If you have any other questions, let me know!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 7, 2025, 4:48pm UTC](https://community.auth0.com/t/use-auth0-after-user-authenticated-via-3rd-party/185845/4 "2025-05-07T16:48:48Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
