You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,43 +1,40 @@
1
1
# Frontify Finder v2
2
2
3
-
Search and access Frontify assets data from any secure web app.
3
+
Authenticate, search and access Frontify assets data from any secure web app.
4
4
5
-
**This package is tightly coupled with the [FrontifyAuthenticator](https://github.com/Frontify/frontify-authenticator) package (@frontify/frontify-authenticator), so you'll have to require both packages in order to make a meaningful use of the Frontify Finder v2.**
5
+
**This package is tightly coupled with the [FrontifyAuthenticator](https://github.com/Frontify/frontify-authenticator) package (@frontify/frontify-authenticator) as it's being used as an internal dependency of the Frontify Finder v2.**
6
6
7
7
# Install
8
8
9
-
There are three possible ways of installing or requiring the Frontify Authenticator v2 and Frontify Finder v2.
9
+
There are three possible ways of installing or requiring the Frontify Finder v2.
10
10
11
11
## NPM
12
12
13
13
Installing the latest published package on a third party app is as simple as running `npm i @frontify/frontify-finder` and requiring the main class either via CommonJs or as an ES module.
import { authorize, refresh, revoke } from '@frontify/frontify-authenticator';
26
-
import { open } from '@frontify/frontify-finder';
24
+
import { create, logout } from '@frontify/frontify-finder';
27
25
```
28
26
29
27
## CDN
30
28
31
-
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](https://unpkg.com/@frontify/frontify-authenticator@latest/dist/index.js) and [Frontify Finder v2](https://unpkg.com/@frontify/frontify-finder@latest/dist/index.js) source code and import it to your project you by requiring it via a `<script>` HTML element.
29
+
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 Finder v2](https://unpkg.com/@frontify/frontify-finder@latest/dist/index.js) source code and import it to your project you by requiring it via a `<script>` HTML element.
You may want to require a specific version. To do so you only have to change the word `latest` with the specific version you wish to use (ie. v2.0.0).
39
36
40
-
To make use of the available methods in the script all you have to do is use the `FrontifyAuthenticator` and `FrontifyFinder` object references attached to the `window`.
37
+
To make use of the available methods in the script all you have to do is use the `FrontifyFinder` object references attached to the `window`.
To install any package locally doesn't differ greatly from the CDN use case. You can use the links mentioned above[here](https://unpkg.com/@frontify/frontify-authenticator@latest/dist/index.js) and[here](https://unpkg.com/@frontify/frontify-finder@latest/dist/index.js) to download the files contents, save it to your local instance and require via `<script>` HTML element making the `src` address point to your local file.
53
+
To install any package locally doesn't differ greatly from the CDN use case. You can use the link mentioned above [here](https://unpkg.com/@frontify/frontify-finder@latest/dist/index.js) to download the files contents, save it to your local instance and require via `<script>` HTML element making the `src` address point to your local file.
0 commit comments