Commit Graph

71 Commits

Author SHA1 Message Date
Carlos Ortega
1d41d6cdec add cookieName as param 2022-08-04 17:02:54 +01:00
Leo Voon
fab4b8698d
fix: rename endpoint method to uppercase (#100)
* fix: rename endpoint method to uppercase

* fix: prettier and lint
2022-07-26 16:32:48 +02:00
ohmree
ca3cca1d6f
Properly export and import the mergePath helper (#75)
* Correctly import `mergePath`

* Export `mergePath`
2022-07-22 18:57:18 +02:00
vhs
19bff9a39c
📚️ Reference example implementations (#73) 2022-02-23 15:09:12 +01:00
RaviAnand Mohabir
4bf8cc9fa0 🔖 Bump Version to 0.4.1 to Support Latest Changes in SK 2022-02-23 14:53:38 +01:00
RaviAnand Mohabir
d7d98a6545 📌 Upgrade SvelteKit Version to Latest in Demo App 2022-02-23 14:53:14 +01:00
RaviAnand Mohabir
ade22e00f1 🎨 Remove unused Imports 2022-02-23 14:52:43 +01:00
Landon Noss
6547a2e78f
Update Svelte-kit dependency to @next.259 (#69)
* updating svelte-kit types to 259 and patching RequestHandler for RequestEvent

* adding dist for github distribution

* cookie parsing from RequestEvent

* reverting gitignore change

* removing dist folder as test artifact

* adding npm prepare

* pattching a default to https redirects
2022-02-23 11:25:59 +01:00
Dan6erbond
ac77764b3d
[FIX] Fix Client Functions and Add Base Path Option (#63)
Fixes #54.
2022-01-12 20:28:20 +01:00
Dan6erbond
099dfd294f
Merge pull request #62 from Dan6erbond:issues/45
[FEATURE] Add Support to Specify Protocol in Auth Config
2022-01-12 19:56:42 +01:00
RaviAnand Mohabir
aea2f9d16e Add option to specify host in Auth config 2022-01-12 19:53:53 +01:00
RaviAnand Mohabir
c10199ab40 🏷️ Add error type to CallbackResult 2022-01-12 19:28:02 +01:00
RaviAnand Mohabir
a748c345cb 🔖 Bump version to 0.4.0 2022-01-12 19:15:22 +01:00
Alexander Staroselsky
962064eb48
feat: spotify provider (#60)
* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* feat: add spotify oauth2 provider

* 🔧 Add `README.md` to `.prettierignore`

* 🎨 Update Prettier and ESLint + format codebase

* 💚 Use `--frozen-lockfile` flag in `yarn install` GitHub CI

* 🔧 Ignore app dir in ESLint script

* 🔧 Move ESLint ignore instructions to `.eslintignore` file

* 🔧 Fix various glob patterns to properly ignore dirs

* 🎨 Run Prettier

Co-authored-by: Alexander Staroselsky <Alexander.Staroselsky1@T-Mobile.com>
Co-authored-by: Dan6erbond <moravrav@gmail.com>
2022-01-12 19:00:35 +01:00
lulzneko
9a5dbe2386
Upgrade to SvelteKit 1.0.0-next.211 and related fixes (#58)
*  Upgrade to SvelteKit 1.0.0-next.211 and related fixes

* 🚨 Fix some lint / formatter errors, ESLint plugin Svelte3 still not working

Co-authored-by: RaviAnand Mohabir <moravrav@gmail.com>
2022-01-12 17:04:51 +01:00
David Bottiau
7c3d02ea0a
add github provider (#50) 2022-01-12 16:43:53 +01:00
Scott Fischer
731eabd893
Adds warning about client-side secrets (#38) 2021-06-03 11:02:26 +02:00
RaviAnand Mohabir
ec0ad24b39 📌 Reinstall sk-auth in app 2021-05-26 13:58:16 +02:00
RaviAnand Mohabir
70fc8ac09e Merge branch 'main' of https://github.com/Dan6erbond/sk-auth into main 2021-05-26 13:54:46 +02:00
RaviAnand Mohabir
cf276bb9e7 🔖 Bump version to 0.3.7 2021-05-26 13:51:04 +02:00
Dan6erbond
735cc261fb
[ENHANCEMENT] Hybrid ESM & CJS Builds (#32)
* 👷 Create an ESM build with Rollup by renaming output files with `.esm`

* 📌 Reinstall `sk-auth` in app
2021-05-26 13:50:36 +02:00
RaviAnand Mohabir
97c285208f 🔧 Use VITE_ prefix for all env variables 2021-05-26 13:43:49 +02:00
RaviAnand Mohabir
c717dbdf6a 👷 Add app/ linting to Workflow 2021-05-26 11:47:54 +02:00
RaviAnand Mohabir
20a644f257 🎨 Format code with Prettier 2021-05-26 11:46:28 +02:00
RaviAnand Mohabir
0fa1ea974c 🔧 Ignore app/ in ESLint config and update plugins for unified config 2021-05-26 11:46:15 +02:00
Dan6erbond
87a817ed1d
👷 Rename master to main 2021-05-26 00:11:40 +02:00
RaviAnand Mohabir
d44e3be197 🔖 Version bump to 0.3.6 2021-05-26 00:01:50 +02:00
RaviAnand Mohabir
5e674c30ee 🎨 Lint and prettify twitch.ts 2021-05-26 00:01:27 +02:00
!anime.x_ror
615ff5fee3
added twitch provider (#22) 2021-05-25 23:59:38 +02:00
Dan6erbond
ae203f06db
👷 Add Lint on PR Workflow 2021-05-25 23:58:06 +02:00
Dan6erbond
9a5cd3dc8b
[ENHANCEMENT] Build ESM Peer Dependency, Typing & Configs (#27)
* 👷 Switch to ESM build

* 🔧 Use `module` instead of `main` config fields

* 📌 Reinstall sk-auth

* 🏷️ Fix type errors

* 🔧 Create separate Vite config JS according to https://github.com/sveltejs/kit/issues/928

* Revert "🔧 Create separate Vite config JS according to https://github.com/sveltejs/kit/issues/928"

This reverts commit 83d23a5a4b.

*  Add `build-esm` as dev and peer dependency

* 👷 Compile CJS module

* 📌 Reinstall deps

* 🔧 Switch to ESM build

* Revert "🔧 Switch to ESM build"

This reverts commit c908a57df3.

* 🔧 Use `main` instead of `module` in `package.json`
2021-05-25 23:24:32 +02:00
Dan6erbond
b2d3995896 🔖 Bump version to 0.3.5 2021-05-25 14:32:21 +02:00
Dan6erbond
923c66df58 🏷️ Update Facebook generic typing for custom profile types 2021-05-25 14:32:06 +02:00
Dan6erbond
cb1b6ae4e2 🔖 Bump version to 0.3.4 2021-05-25 10:12:30 +02:00
Dan6erbond
35f9525363 🏷️ Remove tokens argument from redditProfileHandler 2021-05-25 10:12:13 +02:00
Dan6erbond
3d2f8f8111 🔖 Bump version to 0.3.3 2021-05-25 10:06:47 +02:00
Dan6erbond
d64d9f1807 🏷️ Make OAuth2ProviderConfig.scope and params optional for better type inference in client applications 2021-05-25 10:06:34 +02:00
Dan6erbond
1b3c804590 🔖 Bump version to 0.3.2 2021-05-25 09:57:47 +02:00
Dan6erbond
6f53ada391 👷 Emit Typescript declaration files with Rollup Plugin Typescript 2021-05-25 09:57:29 +02:00
Dan6erbond
293aec5320 🏷️ Fix Facebook types
Remove tokens type generic
2021-05-25 09:56:56 +02:00
RaviAnand Mohabir
753047c22c 🔖 Bump version to 0.3.1 2021-05-24 21:15:11 +02:00
RaviAnand Mohabir
1880e08c42 🏷️ Fix Google and Twitter provider types 2021-05-24 21:14:55 +02:00
RaviAnand Mohabir
feba7dc301 📝 Add installation instructions to README.md 2021-05-24 21:03:45 +02:00
RaviAnand Mohabir
9f77d2b0fd 🔖 Bump version to 0.3.0 2021-05-24 16:37:29 +02:00
RaviAnand Mohabir
ca062d0057 📝 Update documentation texts, add callbacks documentation, OAuth implementation and remove jwt() callback from example 2021-05-24 16:37:12 +02:00
Dan6erbond
47cf0f1250
[ENHANCEMENT] Enhanced Types, Improved OAuth2 Configuration and Bug Fixes (#16)
* 🐛 Refactor `getPath` to `getUrl` and add `getPath` to fix detection of routes

* 🐛 Dynamically build `RegExp` with `basePath`

*  Add `ucFirst` helper

*  Add profile and tokens typing, add `contentType` to config for token fetch and use config in `RedditOAuth2Provider` instead of `getToken` override

* ✏️ Update imports in demo app
2021-05-24 16:30:17 +02:00
RaviAnand Mohabir
35f48c0cb5 🎨 Format and lint code 2021-05-23 22:30:34 +02:00
RaviAnand Mohabir
d980240fd9 🔖 Bump version to 0.2.0 2021-05-23 22:10:47 +02:00
Dan6erbond
b4f7688377
[ENHANCEMENT] OAuth Base Provider (#12)
*  Inject auth instance into provider `signin()` and `callback()` methods

Add generic OAuth provider to implement with simple config.

* 🐛 Fix storing multiple social connections in demo app

*  Create `apiKey` and `apiSecret` aliases for Reddit provider

* ⬆️ Reinstall local dep

* 🏷️ Remove comments / use `OAuth2ProviderConfig` for `GoogleOAuth2Provider` types
2021-05-23 22:09:57 +02:00
RaviAnand Mohabir
6397de8a45 ⬆️ Reinstall svelte-kit-auth as sk-auth 2021-05-23 18:59:32 +02:00