> For the complete documentation index, see [llms.txt](https://xpansionchain-1.gitbook.io/xpansionchain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xpansionchain-1.gitbook.io/xpansionchain/products/passport/install-and-configure/register-your-application.md).

# Register your application

## Register your application

Before you're able to start using Passport, you will need to register your application as an OAuth 2.0 client in the XpansionChain <mark style="color:blue;">Developer Hub</mark>. An OAuth client needs to be registered for every type of application you own, so if you are a game publisher that requires the Passport login in a mobile app and a website, you need to create two clients.

Creating a client allows you to configure settings specific to your application, such as the permissions you require from users. It also grants you a set of credentials that you will need when initiating the login flow from your app.

#### Things to note when adding a client in the Developer Hub[​](https://docs.x.immutable.com/docs/x/passport/register-application#things-to-note-when-adding-a-client-in-the-developer-hub) <a href="#things-to-note-when-adding-a-client-in-the-developer-hub" id="things-to-note-when-adding-a-client-in-the-developer-hub"></a>

* Application Type: The type of your application. Two options are available. `Web Application` for applications accessible through a web browser or `Native` for mobile or desktop applications.
* Client name: The name you wish to use to identify your application.
* Logout URLs: The URL that your users will be redirected to upon logging out of your application.
* Callback URLs: The URL that your users will be redirected to once the authentication is complete. This is also where your application process the authentication response.
* Web Origins URLs: The URLs that are allowed to request authorisation. This field is available when you select the `Native` application type.

#### Next steps[​](https://docs.x.immutable.com/docs/x/passport/register-application#next-steps) <a href="#next-steps" id="next-steps"></a>

Once you have successfully registered your application in the XpansionChain Developer Hub. Be sure to make a note of your application's `Client ID`, `Callback URL` and the `Logout URL` that you entered, as you will need these to <mark style="color:blue;">initialise the Passport module</mark> in your application.
