Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: netlify/netlify-identity-widget
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.5.6
Choose a base ref
...
head repository: netlify/netlify-identity-widget
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.6.0
Choose a head ref
  • 6 commits
  • 10 files changed
  • 3 contributors

Commits on Jan 2, 2020

  1. Bump handlebars from 4.2.1 to 4.5.3 (#227)

    Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.2.1 to 4.5.3.
    - [Release notes](https://github.com/wycats/handlebars.js/releases)
    - [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
    - [Commits](handlebars-lang/handlebars.js@v4.2.1...v4.5.3)
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and erquhart committed Jan 2, 2020
    Copy the full SHA
    6a9e72c View commit details
  2. Copy the full SHA
    05152b1 View commit details

Commits on May 1, 2020

  1. Copy the full SHA
    e3f1ee6 View commit details
  2. updating README

    futuregerald committed May 1, 2020
    Copy the full SHA
    2a0a7ba View commit details

Commits on May 4, 2020

  1. Merge pull request #237 from netlify/feat/add-jwt-refresh

    added refresh method from gotrue
    futuregerald authored May 4, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5478207 View commit details

Commits on May 8, 2020

  1. 1.6.0

    erquhart committed May 8, 2020
    Copy the full SHA
    946520a View commit details
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

## [v1.6.0](https://github.com/netlify/netlify-identity-widget/compare/v1.5.6...v1.6.0) - 2020-05-08

### Merged

- added refresh method from gotrue [`#237`](https://github.com/netlify/netlify-identity-widget/pull/237)
- Bump handlebars from 4.2.0 to 4.5.3 in /example/react [`#228`](https://github.com/netlify/netlify-identity-widget/pull/228)
- Bump handlebars from 4.2.1 to 4.5.3 [`#227`](https://github.com/netlify/netlify-identity-widget/pull/227)

### Commits

- updating README [`2a0a7ba`](https://github.com/netlify/netlify-identity-widget/commit/2a0a7ba909fd79f4fed00637af5bad54b242d4f4)

## [v1.5.6](https://github.com/netlify/netlify-identity-widget/compare/v1.5.5...v1.5.6) - 2019-12-02

### Merged
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -71,6 +71,9 @@ netlifyIdentity.close();

// Log out the user
netlifyIdentity.logout();
// refresh the user's JWT
// Note: this method returns a promise.
netlifyIdentity.refresh().then((jwt)=>console.log(jwt))
```

#### A note on script tag versioning
@@ -113,6 +116,10 @@ netlifyIdentity.close();
// Log out the user
netlifyIdentity.logout();

// refresh the user's JWT
// Note: this method returns a promise.
netlifyIdentity.refresh().then((jwt)=>console.log(jwt))

// Access the underlying GoTrue JS client.
// Note that doing things directly through the GoTrue client brings a risk of getting out of
// sync between your state and the widget’s state.
22 changes: 11 additions & 11 deletions example/react/yarn.lock
Original file line number Diff line number Diff line change
@@ -2175,10 +2175,10 @@ commander@~2.17.1:
resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf"
integrity sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==

commander@~2.20.0:
version "2.20.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422"
integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==
commander@~2.20.3:
version "2.20.3"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==

common-tags@^1.4.0:
version "1.8.0"
@@ -3977,9 +3977,9 @@ handle-thing@^1.2.5:
resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-1.2.5.tgz#fd7aad726bf1a5fd16dfc29b2f7a6601d27139c4"

handlebars@^4.0.3:
version "4.2.0"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.2.0.tgz#57ce8d2175b9bbb3d8b3cf3e4217b1aec8ddcb2e"
integrity sha512-Kb4xn5Qh1cxAKvQnzNWZ512DhABzyFNmsaJf3OAkWNa4NkaqWcNI8Tao8Tasi0/F4JD9oyG0YxuFyvyR57d+Gw==
version "4.5.3"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.5.3.tgz#5cf75bd8714f7605713511a56be7c349becb0482"
integrity sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==
dependencies:
neo-async "^2.6.0"
optimist "^0.6.1"
@@ -8886,11 +8886,11 @@ uglify-js@3.1.x:
source-map "~0.5.1"

uglify-js@^3.1.4:
version "3.6.0"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.6.0.tgz#704681345c53a8b2079fb6cec294b05ead242ff5"
integrity sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==
version "3.7.3"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.7.3.tgz#f918fce9182f466d5140f24bb0ff35c2d32dcc6a"
integrity sha512-7tINm46/3puUA4hCkKYo4Xdts+JDaVC9ZPRcG8Xw9R4nhO/gZgUM3TENq8IF4Vatk8qCig4MzP/c8G4u2BkVQg==
dependencies:
commander "~2.20.0"
commander "~2.20.3"
source-map "~0.6.1"

uglifyjs-webpack-plugin@^1.2.4:
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "netlify-identity-widget",
"description": "Netlify Identity widget for easy integration",
"version": "1.5.6",
"version": "1.6.0",
"author": "Matt Biilmann <matt@netlify.com>",
"bugs": {
"url": "https://github.com/netlify/netlify-identity-widget/issues"
2 changes: 1 addition & 1 deletion releases/v1/netlify-identity-widget.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion releases/v1/netlify-identity-widget.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion releases/v1/netlify-identity.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion releases/v1/netlify-identity.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/netlify-identity.js
Original file line number Diff line number Diff line change
@@ -47,6 +47,12 @@ const netlifyIdentity = {
}
return store.gotrue;
},
refresh(force) {
if (!store.gotrue) {
store.openModal("login");
}
return store.gotrue.currentUser().jwt(force);
},
init: options => {
init(options);
},
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -1900,10 +1900,10 @@ commander@^2.11.0, commander@^2.19.0:
resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a"
integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==

commander@~2.20.0:
version "2.20.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422"
integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==
commander@~2.20.3:
version "2.20.3"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==

commondir@^1.0.1:
version "1.0.1"
@@ -3461,9 +3461,9 @@ handle-thing@^1.2.5:
integrity sha1-/Xqtcmvxpf0W38KbL3pmAdJxOcQ=

handlebars@^4.0.12:
version "4.2.1"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.2.1.tgz#dc69c0e61604224f0c23b38b5b6741db210b57da"
integrity sha512-bqPIlDk06UWbVEIFoYj+LVo42WhK96J+b25l7hbFDpxrOXMphFM3fNIm+cluwg4Pk2jiLjWU5nHQY7igGE75NQ==
version "4.5.3"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.5.3.tgz#5cf75bd8714f7605713511a56be7c349becb0482"
integrity sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==
dependencies:
neo-async "^2.6.0"
optimist "^0.6.1"
@@ -7528,11 +7528,11 @@ uglify-js@^2.8.29:
uglify-to-browserify "~1.0.0"

uglify-js@^3.1.4:
version "3.6.0"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.6.0.tgz#704681345c53a8b2079fb6cec294b05ead242ff5"
integrity sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==
version "3.7.3"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.7.3.tgz#f918fce9182f466d5140f24bb0ff35c2d32dcc6a"
integrity sha512-7tINm46/3puUA4hCkKYo4Xdts+JDaVC9ZPRcG8Xw9R4nhO/gZgUM3TENq8IF4Vatk8qCig4MzP/c8G4u2BkVQg==
dependencies:
commander "~2.20.0"
commander "~2.20.3"
source-map "~0.6.1"

uglify-to-browserify@~1.0.0: