<commit_before>---
title: Login
description: This tutorial will show you how to use the Auth0 Phonegap SDK to add authentication and authorization to your mobile app.
---

## Phonegap Tutorial

<%= include('../../_includes/_package', {
  pkgRepo: 'auth0-cordova',
  pkgBranch: 'master',
  pkgPath: 'examples/phonegap-basic-sample',
  pkgFilePath: 'examples/phonegap-basic-sample/www/js',
  pkgType: 'js'
}) %>

**Otherwise, if you already have an existing application, please follow the steps below.**

::: panel-info System Requirements
This tutorial and seed project have been tested with the following:

* NodeJS 4.3
* Phonegap 5.5
:::


### 1. Setting up the callback URL in Auth0



<div class="setup-callback">
<p>Go to the <a href="${uiAppSettingsURL}">Application Settings</a> section in the Auth0 dashboard and make sure that <b>Allowed Callback URLs</b> contains the following value:</p>

<pre><code>https://${account.namespace}/mobile</pre></code>

<p>Also, if you are testing your application locally, make sure to add your local URL as an Allowed Callback URL and the following as an Allowed Origin (CORS):</p>

<pre><code>file://\*</code></pre>

</div>
<commit_msg>Seed Project Path Update<commit_after>---
title: Login
description: This tutorial will show you how to use the Auth0 Phonegap SDK to add authentication and authorization to your mobile app.
---

## Phonegap Tutorial

<%= include('../../_includes/_package', {
  pkgRepo: 'auth0-cordova-samples',
  pkgBranch: 'master',
  pkgPath: '00-Starter-Seed/phonegap-basic-sample',
  pkgFilePath: '00-Starter-Seed/phonegap-basic-sample/www/js',
  pkgType: 'js'
}) %>

**Otherwise, if you already have an existing application, please follow the steps below.**

::: panel-info System Requirements
This tutorial and seed project have been tested with the following:

* NodeJS 4.3
* Phonegap 5.5
:::


### 1. Setting up the callback URL in Auth0



<div class="setup-callback">
<p>Go to the <a href="${uiAppSettingsURL}">Application Settings</a> section in the Auth0 dashboard and make sure that <b>Allowed Callback URLs</b> contains the following value:</p>

<pre><code>https://${account.namespace}/mobile</pre></code>

<p>Also, if you are testing your application locally, make sure to add your local URL as an Allowed Callback URL and the following as an Allowed Origin (CORS):</p>

<pre><code>file://\*</code></pre>

</div>

{'fraction_non_alphanumeric': 0.1342534504391468, 'fraction_numerical': 0.009201171058134672, 'mean_word_length': 4.524249422632795, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4883578', 'n_tokens_mistral': 763, 'n_tokens_neox': 712, 'n_words': 267}