Skip to content

Commit dd5cf47

Browse files
Update references from master to main branch (auth0#568)
1 parent e499c12 commit dd5cf47

15 files changed

+35
-35
lines changed

.github/ISSUE_TEMPLATE/Bug Report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body:
1515
options:
1616
- label: The issue can be reproduced in the [auth0-react sample app](https://github.com/auth0-samples/auth0-react-samples/tree/master/Sample-01) (or N/A).
1717
required: true
18-
- label: I have looked into the [Readme](https://github.com/auth0/auth0-react#readme), [Examples](https://github.com/auth0/auth0-react/blob/master/EXAMPLES.md), and [FAQ](https://github.com/auth0/auth0-react/blob/master/FAQ.md) and have not found a suitable solution or answer.
18+
- label: I have looked into the [Readme](https://github.com/auth0/auth0-react#readme), [Examples](https://github.com/auth0/auth0-react/blob/main/EXAMPLES.md), and [FAQ](https://github.com/auth0/auth0-react/blob/main/FAQ.md) and have not found a suitable solution or answer.
1919
required: true
2020
- label: I have looked into the [API documentation](https://auth0.github.io/auth0-react/) and have not found a suitable solution or answer.
2121
required: true

.github/ISSUE_TEMPLATE/Feature Request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ body:
88
attributes:
99
label: Checklist
1010
options:
11-
- label: I have looked into the [Readme](https://github.com/auth0/auth0-react#readme), [Examples](https://github.com/auth0/auth0-react/blob/master/EXAMPLES.md), and [FAQ](https://github.com/auth0/auth0-react/blob/master/FAQ.md) and have not found a suitable solution or answer.
11+
- label: I have looked into the [Readme](https://github.com/auth0/auth0-react#readme), [Examples](https://github.com/auth0/auth0-react/blob/main/EXAMPLES.md), and [FAQ](https://github.com/auth0/auth0-react/blob/main/FAQ.md) and have not found a suitable solution or answer.
1212
required: true
1313
- label: I have looked into the [API documentation](https://auth0.github.io/auth0-react/) and have not found a suitable solution or answer.
1414
required: true

.github/ISSUE_TEMPLATE/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ contact_links:
44
url: https://community.auth0.com
55
about: Discuss this SDK in the Auth0 Community forums
66
- name: FAQ
7-
url: https://github.com/auth0/auth0-react/blob/master/FAQ.md
7+
url: https://github.com/auth0/auth0-react/blob/main/FAQ.md
88
about: Read the FAQ to get answers to common issues
99
- name: SDK API Documentation
1010
url: https://auth0.github.io/auth0-react/

.github/workflows/browserstack.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ on:
99
- synchronize
1010
push:
1111
branches:
12-
- master
12+
- main
1313

1414
permissions:
1515
contents: read
1616

1717
concurrency:
1818
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
19+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2020

2121
env:
2222
NODE_VERSION: 18

.github/workflows/codeql.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- synchronize
99
push:
1010
branches:
11-
- master
11+
- main
1212
- beta
1313
schedule:
1414
- cron: '37 10 * * 2'
@@ -20,7 +20,7 @@ permissions:
2020

2121
concurrency:
2222
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
23-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
23+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2424

2525
jobs:
2626
analyze:

.github/workflows/integration.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ on:
55
workflow_dispatch:
66
# pull_request:
77
# branches:
8-
# - master
8+
# - main
99
# push:
1010
# branches:
11-
# - master
11+
# - main
1212

1313
permissions:
1414
contents: read
1515

1616
concurrency:
1717
group: ${{ github.workflow }}-${{ github.ref }}
18-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
18+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1919

2020
env:
2121
NODE_VERSION: 18

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branch:
77
description: The branch to release from
88
required: true
9-
default: master
9+
default: main
1010
version:
1111
description: The version being published. This should be a valid semver version, such as `1.0.0`.
1212
required: true

.github/workflows/semgrep.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- synchronize
99
push:
1010
branches:
11-
- master
11+
- main
1212
- beta
1313
schedule:
1414
- cron: '30 0 1,15 * *'
@@ -18,7 +18,7 @@ permissions:
1818

1919
concurrency:
2020
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
21-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
21+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2222

2323
jobs:
2424
authorize:

.github/workflows/snyk.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- synchronize
1010
push:
1111
branches:
12-
- master
12+
- main
1313
- beta
1414
schedule:
1515
- cron: '30 0 1,15 * *'
@@ -19,7 +19,7 @@ permissions:
1919

2020
concurrency:
2121
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
22-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
22+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2323

2424
jobs:
2525
authorize:

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ on:
55
workflow_dispatch:
66
pull_request:
77
branches:
8-
- master
8+
- main
99
push:
1010
branches:
11-
- master
11+
- main
1212

1313
permissions:
1414
contents: read
1515

1616
concurrency:
1717
group: ${{ github.workflow }}-${{ github.ref }}
18-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
18+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1919

2020
env:
2121
NODE_VERSION: 18

EXAMPLES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default withAuthenticationRequired(PrivateRoute, {
4444
});
4545
```
4646

47-
**Note** If you are using a custom router, you will need to supply the `Auth0Provider` with a custom `onRedirectCallback` method to perform the action that returns the user to the protected page. See examples for [react-router](https://github.com/auth0/auth0-react/blob/master/EXAMPLES.md#1-protecting-a-route-in-a-react-router-dom-app), [Gatsby](https://github.com/auth0/auth0-react/blob/master/EXAMPLES.md#2-protecting-a-route-in-a-gatsby-app) and [Next.js](https://github.com/auth0/auth0-react/blob/master/EXAMPLES.md#3-protecting-a-route-in-a-nextjs-app-in-spa-mode).
47+
**Note** If you are using a custom router, you will need to supply the `Auth0Provider` with a custom `onRedirectCallback` method to perform the action that returns the user to the protected page. See examples for [react-router](https://github.com/auth0/auth0-react/blob/main/EXAMPLES.md#1-protecting-a-route-in-a-react-router-dom-app), [Gatsby](https://github.com/auth0/auth0-react/blob/main/EXAMPLES.md#2-protecting-a-route-in-a-gatsby-app) and [Next.js](https://github.com/auth0/auth0-react/blob/main/EXAMPLES.md#3-protecting-a-route-in-a-nextjs-app-in-spa-mode).
4848

4949
## Call an API
5050

FAQ.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Frequently Asked Questions
22

3-
**Note:** `auth0-react` uses [Auth0 SPA JS](https://github.com/auth0/auth0-spa-js) behind the scenes, so be sure to check [their FAQs](https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md) too.
3+
**Note:** `auth0-react` uses [Auth0 SPA JS](https://github.com/auth0/auth0-spa-js) behind the scenes, so be sure to check [their FAQs](https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md) too.
44

55
1. [User is not logged in after page refresh](#1-user-is-not-logged-in-after-page-refresh)
66
2. [User is not logged in after successful sign in with redirect](#2-user-is-not-logged-in-after-successful-sign-in-with-redirect)

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
![Auth0 SDK for React Single Page Applications](https://cdn.auth0.com/website/sdks/banners/auth0-react-banner.png)
22

33
[![npm](https://img.shields.io/npm/v/@auth0/auth0-react.svg?style=flat)](https://www.npmjs.com/package/@auth0/auth0-react)
4-
[![codecov](https://img.shields.io/codecov/c/github/auth0/auth0-react/master.svg?style=flat)](https://codecov.io/gh/auth0/auth0-react)
4+
[![codecov](https://img.shields.io/codecov/c/github/auth0/auth0-react/main.svg?style=flat)](https://codecov.io/gh/auth0/auth0-react)
55
![Downloads](https://img.shields.io/npm/dw/@auth0/auth0-react)
66
[![License](https://img.shields.io/:license-mit-blue.svg?style=flat)](https://opensource.org/licenses/MIT)
7-
[![CircleCI](https://img.shields.io/circleci/build/github/auth0/auth0-react.svg?branch=master&style=flat)](https://circleci.com/gh/auth0/auth0-react)
7+
[![CircleCI](https://img.shields.io/circleci/build/github/auth0/auth0-react.svg?branch=main&style=flat)](https://circleci.com/gh/auth0/auth0-react)
88

99
📚 [Documentation](#documentation) - 🚀 [Getting Started](#getting-started) - 💻 [API Reference](#api-reference) - 💬 [Feedback](#feedback)
1010

1111
## Documentation
1212

1313
- [Quickstart](https://auth0.com/docs/quickstart/spa/react) - our interactive guide for quickly adding login, logout and user information to a React app using Auth0.
1414
- [Sample App](https://github.com/auth0-samples/auth0-react-samples/tree/master/Sample-01) - a full-fledged React application integrated with Auth0.
15-
- [FAQs](https://github.com/auth0/auth0-react/blob/master/FAQ.md) - frequently asked questions about the auth0-react SDK.
16-
- [Examples](https://github.com/auth0/auth0-react/blob/master/EXAMPLES.md) - code samples for common React authentication scenario's.
15+
- [FAQs](https://github.com/auth0/auth0-react/blob/main/FAQ.md) - frequently asked questions about the auth0-react SDK.
16+
- [Examples](https://github.com/auth0/auth0-react/blob/main/EXAMPLES.md) - code samples for common React authentication scenario's.
1717
- [Docs site](https://www.auth0.com/docs) - explore our docs site and learn more about Auth0.
1818

1919
## Getting started
@@ -140,7 +140,7 @@ function App() {
140140
export default App;
141141
```
142142

143-
For more code samples on how to integrate **auth0-react** SDK in your **React** application, have a look at our [examples](https://github.com/auth0/auth0-react/blob/master/EXAMPLES.md).
143+
For more code samples on how to integrate **auth0-react** SDK in your **React** application, have a look at our [examples](https://github.com/auth0/auth0-react/blob/main/EXAMPLES.md).
144144

145145
## API reference
146146

@@ -160,7 +160,7 @@ We appreciate feedback and contribution to this repo! Before you get started, pl
160160

161161
- [Auth0's general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
162162
- [Auth0's code of conduct guidelines](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md)
163-
- [This repo's contribution guide](https://github.com/auth0/auth0-react/blob/master/CONTRIBUTING.md)
163+
- [This repo's contribution guide](https://github.com/auth0/auth0-react/blob/main/CONTRIBUTING.md)
164164

165165
### Raise an issue
166166

@@ -181,4 +181,4 @@ Please do not report security vulnerabilities on the public GitHub issue tracker
181181
</p>
182182
<p align="center">Auth0 is an easy to implement, adaptable authentication and authorization platform. To learn more checkout <a href="https://auth0.com/why-auth0">Why Auth0?</a></p>
183183
<p align="center">
184-
This project is licensed under the MIT license. See the <a href="https://github.com/auth0/auth0-react/blob/master/LICENSE"> LICENSE</a> file for more info.</p>
184+
This project is licensed under the MIT license. See the <a href="https://github.com/auth0/auth0-react/blob/main/LICENSE"> LICENSE</a> file for more info.</p>

TROUBLESHOOTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ When your application is not behaving as expected:
55
- Check for any messages in the console
66
- Check the Network Activity especially any requests to your authorization server
77
- Check the log data in your [Auth0 Dashboard](https://manage.auth0.com#/logs)
8-
- Check the `@auth0/auth0-spa-js` [FAQs](https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md)
8+
- Check the `@auth0/auth0-spa-js` [FAQs](https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md)
99

1010
If you believe there is a bug in the SDK, [raise an issue](https://github.com/auth0/auth0-spa-js/issues/new/choose). Be sure to include all the information required to reproduce the issue.

0 commit comments

Comments
 (0)