<commit_before># Using Auth0 with PhoneGap (Cordova)

This tutorial explains how to integrate Auth0 with a PhoneGap (Cordova) application. The __com.auth0.sdk__ plugin helps you authenticate users with any [Auth0 supported identity provider](identityproviders), via the OpenId Connect protocol (built on top of OAuth2).

## Tutorial

### 1. Install com.auth0.sdk plugin

1.1. Install the plugin executing the following at the command line:

```
phonegap local plugin add https://github.com/auth0/phonegap-auth0.git
```

1.2. Enable the plugin within your PhoneGap application by adding this line to the `www/config.xml` file:

```xml
<plugin name="Auth0Client" value="com.auth0.sdk" />
```
	
Alternatively, you can ignore step #1.1 and include the following element to your `www/config.xml` file:

```xml
<gap:plugin name="com.auth0.sdk" />
```

1.3. In your html file, make sure to include a reference to the <a target="_new" href="http://jquery.com/download/">jQuery</a> library:

```html
<script type="text/javascript" src="js/jquery.min.js"></script>
```

### 2. Setting up the callback URL in Auth0<commit_msg>minor<commit_after># Using Auth0 with PhoneGap (Cordova)

This tutorial explains how to integrate Auth0 with a PhoneGap (Cordova) application. The __com.auth0.sdk__ plugin helps you authenticate users with any [Auth0 supported identity provider](identityproviders), via the OpenId Connect protocol (built on top of OAuth2).

## Tutorial

### 1. Install com.auth0.sdk plugin

1.1. Install the plugin executing the following at the command line:

```
phonegap local plugin add https://github.com/auth0/phonegap-auth0.git
```

1.2. Enable the plugin within your PhoneGap application by adding this line to the `www/config.xml` file:

```xml
<plugin name="Auth0Client" value="com.auth0.sdk" />
```
	
If you prefer using <a href="http://build.phonegap.com/" target="_new">PhoneGap Build</a>, you can ignore step #1.1 and include the following element to your `www/config.xml` file:

```xml
<gap:plugin name="com.auth0.sdk" />
```

1.3. In your html file, make sure to include a reference to the <a target="_new" href="http://jquery.com/download/">jQuery</a> library:

```html
<script type="text/javascript" src="js/jquery.min.js"></script>
```

### 2. Setting up the callback URL in Auth0
{'fraction_non_alphanumeric': 0.12663185378590078, 'fraction_numerical': 0.019147084421235857, 'mean_word_length': 4.718905472636816, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5768716', 'n_tokens_mistral': 724, 'n_tokens_neox': 692, 'n_words': 264}