Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
70e92af
refactor: expiresin changed
ansadkfly Jan 28, 2025
bad2840
feat: refreshtoken added
ansadkfly Jan 28, 2025
eab06fc
feat: changed class into functions
ansadkfly Jan 28, 2025
4025d38
feat: changed class based into function based type
ansadkfly Jan 28, 2025
4c22352
feat: default secret value added
ansadkfly Jan 28, 2025
66572bf
feat: logs info changed
ansadkfly Jan 28, 2025
1ce8dbd
refactor: removed repeated file
ansadkfly Jan 29, 2025
c759093
feat: seperated as middleware
ansadkfly Jan 29, 2025
175be22
feat: config added for session and oath
ansadkfly Jan 29, 2025
33c9d5e
feat: removed the complicated code and connected to desired files
ansadkfly Jan 29, 2025
dacf788
feat: export changed
ansadkfly Feb 3, 2025
5cff28d
feat: added grands permission for all cases
ansadkfly Feb 6, 2025
ae3fe48
refactor: removed commented codes
ansadkfly Feb 6, 2025
6e0349c
[Feat/grands] : added grands permission,logs config (#6)
ansadkfly Apr 13, 2025
3c0a1dc
chore:(tsc): add dependency and configurations
bprahul017 Jul 28, 2025
77b4091
refactor(code): converted into ts
bprahul017 Jul 28, 2025
7a538ad
fix(readme): update config feildname as per standerds
bprahul017 Jul 29, 2025
a1bf65a
Merge pull request #9 from flycatch/refactor/typescript
shree-ni Jul 29, 2025
4d9ff98
feat(workflow): add github actions for build,unit-test,eslint,vesrsio…
bprahul017 Jul 29, 2025
15d2850
feat(eslint): added lint check
bprahul017 Jul 29, 2025
fc7205c
chore(workflows): add work flow for tag creation,github release and …
bprahul017 Jul 29, 2025
af55d5b
fix(readme): updated functions in readme
bprahul017 Jul 30, 2025
9670eb1
feat(test): configuring unit test
bprahul017 Jul 30, 2025
abbac21
refactor(npm): docs included in npm files
bprahul017 Jul 30, 2025
d10b72f
chore(pre-commit): add precommit
bprahul017 Jul 30, 2025
65ee8b1
docs(npm): update version
bprahul017 Jul 30, 2025
d179d87
Merge pull request #10 from flycatch/feat/cicd
shree-ni Aug 1, 2025
6abc1d3
refactor(src): files renamed as per standerds
bprahul017 Aug 14, 2025
1bbd354
fix(google): config feilds updated, reciveing prefix from user
bprahul017 Aug 14, 2025
c1ad63d
fix(google): update google auth to provide either jwt or session tokens
bprahul017 Aug 14, 2025
29a8217
fix(npm): update version
bprahul017 Aug 18, 2025
f98d304
Merge pull request #11 from flycatch/fix/phase-2
shree-ni Aug 20, 2025
ab3c970
refactor(google): update response, readme docs
bprahul017 Aug 20, 2025
93426f3
refactor(google): update typos in logs and response, readme docs
bprahul017 Aug 21, 2025
079f3e1
Merge pull request #12 from flycatch/refactor/clean-up
shree-ni Aug 22, 2025
7523a1f
feat(2fa): added 2fa initial setup
bprahul017 Aug 13, 2025
6e91ed6
feat(2fa): completed 2fa setup
bprahul017 Aug 18, 2025
b95f32a
feat(2fa): completed two factor auth
bprahul017 Aug 20, 2025
d7dc7f9
feat(tokens): set token generation function reusable
bprahul017 Aug 20, 2025
78bd089
refactor(resonse): cleanup
bprahul017 Aug 20, 2025
e7ed808
refactor(response): cleanup
bprahul017 Aug 20, 2025
a526cf3
refactor(2fa): reslve typos
bprahul017 Aug 25, 2025
7c6c785
feat(oauth): set oauth config to use multiple providers
bprahul017 Aug 26, 2025
d770e15
feat(facebook): added facebook startegies on oauth 2 config
bprahul017 Aug 26, 2025
b5ee98d
feat(github): add github oauth2 features
bprahul017 Aug 27, 2025
52d6375
feat(twitter): set feature for twitter oauth
bprahul017 Aug 27, 2025
95814d9
feat(oauth): set configuration to use custom oauth 2 providers with t…
bprahul017 Aug 29, 2025
ae03580
feat(test): add basic level unit rtesting for oauth setup
bprahul017 Aug 29, 2025
5c6ea18
refactor(oauth): config structarize
bprahul017 Sep 3, 2025
b55d15e
feat(jwt): white labelled, added logout routes whith configurable bla…
bprahul017 Sep 9, 2025
98485d0
feat(session): add logout routes for session, fix for using more than…
bprahul017 Sep 9, 2025
2b4474b
docs(readme): updated new features
bprahul017 Sep 10, 2025
d83b496
feat(unit test): test configured for 85% coverage on all auth flows
bprahul017 Sep 16, 2025
b907c45
fix(2fa): updated auth messgae, upated routes for 2fa, thrown errors …
bprahul017 Oct 3, 2025
1ca3373
feat(2fa): add otp type feature on two factor auth
bprahul017 Oct 3, 2025
15e4e9c
fix(oauth2): remove passport dependency
bprahul017 Oct 6, 2025
0ace445
fix(oauth): remove passport provider dependencies
bprahul017 Oct 7, 2025
fe30aa2
refactor(test): updated unit test issues
bprahul017 Oct 8, 2025
01da8a7
docs(readme): updated the changes on 2fa and oauth2
bprahul017 Oct 8, 2025
5f9fd00
fix(oauth2): resolve oauth2 bugs
bprahul017 Oct 8, 2025
fc10b74
fix(oauth): redirection fix in progress
bprahul017 Oct 10, 2025
f90deab
fix(oauth): update workflow, resolve issues in redirection
bprahul017 Oct 13, 2025
8e972c3
docs(readme): update readme to support updations
bprahul017 Oct 14, 2025
0a7c77a
chore(test): updated unit test config
bprahul017 Oct 14, 2025
bb812da
refactor(cleanup): remove unwanted exports and added comments
bprahul017 Oct 17, 2025
0a417a9
fix(twoFA): remove unwanted error thrwing for two acator auth
bprahul017 Oct 21, 2025
b0506b8
docs(readme): clean up
bprahul017 Oct 22, 2025
603c2c6
refactor(auth): fix all response message
bprahul017 Oct 24, 2025
cec2391
refactor(user): fix typo on grants
bprahul017 Oct 24, 2025
1d6efbf
feat(oauth2): add on success, on failure confifg to handle external l…
bprahul017 Oct 24, 2025
ade4f13
fix(oauth2): removed unwanted cookies config for oauth2
bprahul017 Oct 24, 2025
a018ff3
fix(oauth2): remove unwanted configs
bprahul017 Oct 24, 2025
469672d
docs(readme): updated oauth2 changes
bprahul017 Oct 24, 2025
5d8193b
Merge pull request #13 from flycatch/fix/phase-3
shree-ni Oct 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: npm build Test

on:
pull_request:
branches:
- dev
- main

jobs:
build_and_deploy:
runs-on: self-hosted

steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # required to fetch other branches

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Extract version from base branch
id: base_version
run: |
git fetch origin ${{ github.base_ref }} --depth=1
echo "value=$(node -p "JSON.parse(require('child_process').execSync('git show origin/${{ github.base_ref }}:package.json').toString()).version")" >> "$GITHUB_OUTPUT"

- name: Extract version from current branch
id: branch_version
run: |
echo "value=$(node -p "require('./package.json').version")" >> "$GITHUB_OUTPUT"

- name: "Version check ${{ steps.base_version.outputs.value || '0.0.0' }} < ${{ steps.branch_version.outputs.value }}"
uses: flycatch/check-semver-action@v1.0.1
with:
prev_version: ${{ steps.base_version.outputs.value || '0.0.0' }}
next_version: ${{ steps.branch_version.outputs.value }}
singleInc: ${{ github.base_ref == 'dev' }}

- name: Eslint
run: |
echo "Eslint in progress"
(echo "===== Eslint Attempt: 1 ====" && npm run lint) || {
echo "===== Eslint failed... ====";
exit 1;
}

- name: npm build
run: |
echo "npm build in progress"
(echo "===== npm build Attempt: 1 ====" && npm run build) || {
echo "===== npm build failed... ====";
exit 1;
}

- name: npm test
run: |
echo "npm test in progress"
(echo "===== npm test Attempt: 1 ====" && npm test) || {
echo "===== npm test failed... ====";
exit 1;
}
78 changes: 78 additions & 0 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: merge_release_tag

on:
push:
branches:
- "dev"
- "main"
workflow_dispatch:

jobs:
release-tag:
runs-on: self-hosted
outputs:
version: ${{ steps.extract_version.outputs.value }}

steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Set up Node.js"
uses: actions/setup-node@v4
with:
node-version: 18

- name: "Extract version from package.json"
id: extract_version
run: |
VERSION=$(node -p "require('./package.json').version")
echo "value=$VERSION" >> $GITHUB_OUTPUT

- name: Create dev tag
if: github.ref == 'refs/heads/dev'
run: |
git config user.name "${{ github.event.head_commit.committer.name }}"
git config user.email "${{ github.event.head_commit.committer.email }}"
git tag v${{ steps.extract_version.outputs.value }}-beta
git push origin v${{ steps.extract_version.outputs.value }}-beta

- name: Create main tag
if: github.ref == 'refs/heads/main'
run: |
git config user.name "${{ github.event.head_commit.committer.name }}"
git config user.email "${{ github.event.head_commit.committer.email }}"
git tag v${{ steps.extract_version.outputs.value }}
git push origin v${{ steps.extract_version.outputs.value }}

publish:
runs-on: self-hosted
needs: release-tag
if: github.ref == 'refs/heads/main'

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies and build
run: |
npm ci
npm run build

- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
make_latest: true
tag_name: v${{ needs.release-tag.outputs.version }}
target_commitish: 'main'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
application.log
node_modules/
.npmrc
dist/
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: no-commit-to-branch
args: [--branch, main, --branch, uat, --branch, dev]
- id: check-merge-conflict
- id: check-case-conflict

- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, docs, refactor, style, test, perf, chore, BREAKING CHANGE]
Loading