177 Commits

Author SHA1 Message Date
4c78b51ec7 fix: merge conflicts. remove import in quickstart 2023-03-03 12:49:56 +01:00
332d65b025 Update frontend/elements/src/index.ts
Co-authored-by: lfleischmann <67686424+lfleischmann@users.noreply.github.com>
2023-03-03 12:32:41 +01:00
a5e9f662e6 chore: optimize imports (#634) 2023-03-03 12:10:25 +01:00
c4cbf6e473 Merge pull request #612 from teamhanko/dependabot/npm_and_yarn/frontend/frontend-sdk/eslint-8.35.0
chore(deps-dev): bump eslint from 8.33.0 to 8.35.0 in /frontend/frontend-sdk
2023-03-03 11:54:31 +01:00
bdd1400f54 Merge pull request #609 from teamhanko/dependabot/npm_and_yarn/frontend/elements/typescript-eslint/eslint-plugin-5.54.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.51.0 to 5.54.0 in /frontend/elements
2023-03-03 11:54:06 +01:00
5aa9e0c010 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.51.0 to 5.54.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.54.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-03 10:40:51 +00:00
a868714616 chore(deps-dev): bump eslint in /frontend/frontend-sdk
Bumps [eslint](https://github.com/eslint/eslint) from 8.33.0 to 8.35.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.33.0...v8.35.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-03 10:40:35 +00:00
172b927b87 chore(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.51.0 to 5.54.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.54.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-03 10:39:57 +00:00
ce3efadbf7 Merge pull request #610 from teamhanko/dependabot/npm_and_yarn/frontend/elements/typescript-eslint/parser-5.54.0
chore(deps-dev): bump @typescript-eslint/parser from 5.53.0 to 5.54.0 in /frontend/elements
2023-03-03 11:25:35 +01:00
77a5bea31d Merge pull request #611 from teamhanko/dependabot/npm_and_yarn/frontend/elements/eslint-8.35.0
chore(deps-dev): bump eslint from 8.33.0 to 8.35.0 in /frontend/elements
2023-03-03 11:25:11 +01:00
8fd0be218b chore(deps-dev): bump eslint from 8.33.0 to 8.35.0 in /frontend/elements
Bumps [eslint](https://github.com/eslint/eslint) from 8.33.0 to 8.35.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.33.0...v8.35.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-03 10:07:25 +00:00
2804b3dd2b chore(deps): bump @types/js-cookie in /frontend/frontend-sdk
Bumps [@types/js-cookie](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/js-cookie) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/js-cookie)

---
updated-dependencies:
- dependency-name: "@types/js-cookie"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-03 10:07:04 +00:00
e7a5c2df27 Feat: Add logout method to sdk (#566)
* Add endpoint to invalidate HTTP-Only cookie from the backend

* Add methods to the UserClient SDK for logout

* Remove session token fetch and add unit test for logout

* Update public router to use JWT middleware

* Add logout button to frontend. Route back to login page once logout is successful.

* Add a logout failur event

* Update logout logic in SDK

* Remove unneeded endpoint from main.go

* Update logoutlink reference

* Fix request path; undo change in package order

* Update common.css to incldue hanko-logout

* feat(fronend-sdk): remove cookie during cross-domain operations

* fix(frontend-sdk): No unauthorized error during logout, when the user is already logged out

* feat(backend): Create an audit log entry when the user logs off

* chore(frontend-sdk): re-generate jsdoc

* fix: Adjust logout response codes and the corresponding frontend sdk error handling

* chore(frontend-sdk): re-generate jsdoc

* feat: add logout endpoint specification to the docs

* Fix broken unit test

* Remove logout button from elements

* Add event listener on frontend to call the logout method from SDK

* Rollback changes to SecuredContent on e2e tests

* Update logout test on user

* Update quickstart/public/assets/css/common.css

Co-authored-by: bjoern-m <56024829+bjoern-m@users.noreply.github.com>

---------

Co-authored-by: Björn Müller <bjoern.mueller@hanko.io>
Co-authored-by: bjoern-m <56024829+bjoern-m@users.noreply.github.com>
2023-03-03 10:48:33 +01:00
5dd18598f9 fix(hanko-elements): show loading spinner until the api attribut is defined (#619) 2023-03-02 11:09:34 +01:00
424b1c58f0 feat(elements): use svg icons 2023-03-02 10:17:55 +01:00
2dfacc34d1 fix: fix elements Readme to use esm 2023-03-01 13:53:04 +01:00
177bebf96b fix: use hanko elements as esmodule in quickstart. add cors config to elements container. should fix e2e tests 2023-03-01 13:38:11 +01:00
f13cfd9014 chore: recreated package-lock.json. now docker build works 2023-03-01 10:24:11 +01:00
4dacce5311 chore: yet another workspace only for the frontend parts. trying to fix the docker build 2023-03-01 10:15:02 +01:00
11362cf006 fix: fix merge conflicts 2023-02-28 15:47:33 +01:00
1eff2bf57a feat: build esm elements. svelte now functional 2023-02-28 13:55:23 +01:00
ccb3388a19 chore(deps-dev): bump @typescript-eslint/parser in /frontend/elements
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.53.0 to 5.54.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.54.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-27 20:26:38 +00:00
d1f94d02cb Merge pull request #605 from teamhanko/feat-release-elements
Feat release elements
2023-02-27 12:39:15 +01:00
6d122c3e36 Merge pull request #604 from teamhanko/feat-release-frontend-sdk
chore: update frontend-sdk 0.2.0
2023-02-27 12:38:57 +01:00
8501072ec0 chore: update package-lock.json 2023-02-27 12:31:11 +01:00
a3ec4b349a chore: update package-lock 2023-02-27 12:29:26 +01:00
6769091f3f chore: bump elements version 2023-02-27 12:15:53 +01:00
0df3e1b286 chore: update frontend-sdk 0.2.0 2023-02-27 12:10:29 +01:00
b97f051009 Feat: display last used time of WebAuthn credentials (#600)
* display last used time of the webauthn credentials
2023-02-27 10:52:52 +01:00
f9639ad159 small changes 2023-02-24 15:16:57 +01:00
df802aba5f fix: fix frontend-sdk dependency 2023-02-24 12:12:03 +01:00
ee762395cd chore: vue and svelte not working 2023-02-24 11:59:10 +01:00
862a9a080c fix: angular somehow working 2023-02-24 10:45:25 +01:00
a55e6ecd0f nextjs: somehow working 2023-02-24 09:29:52 +01:00
ea3ba2fd55 Merge pull request #592 from teamhanko/dependabot/npm_and_yarn/frontend/elements/sass-1.58.3
chore(deps-dev): bump sass from 1.58.2 to 1.58.3 in /frontend/elements
2023-02-23 13:29:58 +01:00
b23ac975bb chore(deps-dev): bump @typescript-eslint/parser in /frontend/elements
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.52.0 to 5.53.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.53.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-23 12:05:54 +00:00
eec7a473a5 feat: add third party integrations
add third party integrations
2023-02-23 13:05:05 +01:00
015c1c6314 chore: bump version 2023-02-21 13:52:40 +01:00
040602cb44 fix(hanko-elements): change passcode button text (#586)
* fix(hanko-elements): change passcode button text
2023-02-21 13:00:23 +01:00
46e46f04eb chore(deps-dev): bump sass from 1.58.2 to 1.58.3 in /frontend/elements
Bumps [sass](https://github.com/sass/dart-sass) from 1.58.2 to 1.58.3.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.58.2...1.58.3)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-20 20:11:27 +00:00
e618a7124b Merge pull request #569 from irby/fix-hanko-elements-lang
Fix: Resolve null reference exception that occurs when lang is not supplied to hanko-elements
2023-02-20 12:13:54 +01:00
99bf59333a chore(deps-dev): bump sass from 1.58.1 to 1.58.2 in /frontend/elements
Bumps [sass](https://github.com/sass/dart-sass) from 1.58.1 to 1.58.2.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.58.1...1.58.2)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-17 20:05:47 +00:00
4d929c2b9e Merge branch 'main' into fix-hanko-elements-lang 2023-02-17 11:18:47 -08:00
9561801293 chore(deps-dev): bump jsdoc in /frontend/frontend-sdk
Bumps [jsdoc](https://github.com/jsdoc/jsdoc) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/jsdoc/jsdoc/releases)
- [Changelog](https://github.com/jsdoc/jsdoc/blob/4.0.1/CHANGES.md)
- [Commits](https://github.com/jsdoc/jsdoc/compare/4.0.0...4.0.1)

---
updated-dependencies:
- dependency-name: jsdoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 20:04:50 +00:00
b39641cc54 chore(deps-dev): bump jest-environment-jsdom in /frontend/frontend-sdk
Bumps [jest-environment-jsdom](https://github.com/facebook/jest/tree/HEAD/packages/jest-environment-jsdom) from 29.4.2 to 29.4.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.4.3/packages/jest-environment-jsdom)

---
updated-dependencies:
- dependency-name: jest-environment-jsdom
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-16 10:40:42 +00:00
26c05cd733 Merge pull request #579 from teamhanko/dependabot/npm_and_yarn/frontend/frontend-sdk/jest-29.4.3
chore(deps-dev): bump jest from 29.4.2 to 29.4.3 in /frontend/frontend-sdk
2023-02-16 11:39:50 +01:00
90ce09be07 chore(deps-dev): bump jest in /frontend/frontend-sdk
Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.4.2 to 29.4.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.4.3/packages/jest)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-15 20:06:34 +00:00
97adbab786 chore(deps-dev): bump sass from 1.58.0 to 1.58.1 in /frontend/elements
Bumps [sass](https://github.com/sass/dart-sass) from 1.58.0 to 1.58.1.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.58.0...1.58.1)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-14 19:16:04 +00:00
4936bf92c1 chore(deps-dev): bump @typescript-eslint/parser in /frontend/elements
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.51.0 to 5.52.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.52.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-14 13:07:21 +00:00
14e782306a Merge pull request #575 from teamhanko/dependabot/npm_and_yarn/frontend/elements/typescript-eslint/eslint-plugin-5.52.0
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.51.0 to 5.52.0 in /frontend/elements
2023-02-14 14:04:58 +01:00