Skip to content

Commit 3ebf0bb

Browse files
Update README.md
1 parent b5f13b6 commit 3ebf0bb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ There are three possible ways of installing or requiring the Frontify Authentica
1010

1111
Installing the latest published package on a third party app is as simple as running `npm i @frontify/frontify-authenticator` and requiring the main class either via CommonJs or as an ES module.
1212

13-
```
13+
```js
1414
// CommonJs require
1515
const FrontifyAuthenticator = require('@frontify/frontify-authenticator');
1616
```
1717

1818
OR
1919

20-
```
20+
```js
2121
// ESM import
2222
import { authorize, refresh, revoke } from '@frontify/frontify-authenticator';
2323
```
@@ -26,7 +26,7 @@ import { authorize, refresh, revoke } from '@frontify/frontify-authenticator';
2626

2727
Alternatively, in case you're not relying on npm packages in your web app, you can also require the minified JS script directly by using a CDN such as UPAKG. You can find the latest [Frontify Authenticator v2 source code](https://unpkg.com/@frontify/frontify-authenticator@latest/dist/index.js) and import it to your project you by requiring it via a `<script>` HTML element.
2828

29-
```
29+
```html
3030
<script src="https://unpkg.com/@frontify/frontify-authenticator@latest/dist/index.js"></script>
3131
```
3232

@@ -36,21 +36,21 @@ To make use of the available methods in the script all you have to do is use the
3636

3737
Example:
3838

39-
```
39+
```js
4040
FrontifyAuthenticator.authorize(...);
4141
```
4242

4343
or
4444

45-
```
45+
```js
4646
window.FrontifyAuthenticator.authorize(...);
4747
```
4848

4949
## LOCAL
5050

5151
To install any package locally doesn't differ greatly from the CDN use case. You can use the [link mentioned above](https://unpkg.com/@frontify/frontify-authenticator@latest/dist/index.js) to download the file contents, save it to your local instance and require via `<script>` HTML element making the `src` address point to your local file.
5252

53-
```
53+
```html
5454
<script src="<PATH_TO_FILE>/<FILENAME>.js"></script>
5555
```
5656

0 commit comments

Comments
 (0)