Skip to content
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5d0744f
[feat] :sparkles: add security events endpoint mapping (#288)
dappsar Jan 20, 2026
c96a944
[feat] :sparkles: add security events hook and types (#288)
dappsar Jan 20, 2026
0f30a44
[feat] :sparkles: add security events backend service (#288)
dappsar Jan 20, 2026
6232926
[feat] :sparkles: add security events API route (#288)
dappsar Jan 20, 2026
104dbfa
[feat] :sparkles: add security events dashboard page (#288)
dappsar Jan 20, 2026
020211a
[feat] :sparkles: add security events route path (#288)
dappsar Jan 20, 2026
5f62a2e
[feat] :sparkles: add security events entry to security list (#288)
dappsar Jan 20, 2026
f4ee4f6
[feat] :label: define security event types (#288)
dappsar Jan 20, 2026
3ee93e6
[feat] :sparkles: add security events table with filters (#288)
dappsar Jan 20, 2026
f208b69
[feat] :sparkles: add security events view layout (#288)
dappsar Jan 20, 2026
3bbf33c
[feat] :sparkles: export security events view (#288)
dappsar Jan 20, 2026
59d4cc9
[feat] :globe_with_meridians: add security events translations (en) (…
dappsar Jan 20, 2026
f1c5d79
[feat] :globe_with_meridians: add security events translations (pt-BR…
dappsar Jan 20, 2026
f893d1b
[feat] :globe_with_meridians: add security events translations (es) (…
dappsar Jan 20, 2026
fbdcc98
[docs] :memo: add sample security events response (#288)
dappsar Jan 20, 2026
d785eb0
Merge branch 'develop' of github.com:P4-Games/ChatterPay into develop
dappsar Jan 20, 2026
a68cbe9
Merge branch 'develop' of github.com:P4-Games/ChatterPay into develop
dappsar Feb 5, 2026
5f632a4
Merge branch 'develop' of github.com:P4-Games/ChatterPay into develop
dappsar Feb 5, 2026
8a73cb2
[fix] :bug: fix language selection (#298)
dappsar Feb 5, 2026
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
8 changes: 4 additions & 4 deletions src/auth/context/jwt/auth-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useMemo, useEffect, useReducer, useCallback } from 'react'

import { post, fetcher, endpoints } from 'src/app/api/hooks/api-resolver'
import { useLocales } from 'src/locales'
import { useTranslate } from 'src/locales'
import { setSession } from 'src/auth/context/jwt/utils'

import { AuthContext } from './auth-context'
Expand Down Expand Up @@ -70,7 +70,7 @@ type Props = { children: React.ReactNode }

export function AuthProvider({ children }: Props) {
const [state, dispatch] = useReducer(reducer, initialState)
const { currentLang } = useLocales()
const { i18n } = useTranslate()

const initialize = useCallback(async () => {
try {
Expand Down Expand Up @@ -112,11 +112,11 @@ export function AuthProvider({ children }: Props) {
phone,
codeMsg,
recaptchaToken,
preferred_language: normalizePreferredLanguage(currentLang?.value)
preferred_language: normalizePreferredLanguage(i18n?.language)
})
dispatch({ type: Types.GENERATE_CODE_LOGIN, payload: { user: null } })
},
[currentLang?.value]
[i18n?.language]
)

const generate2faCodeEmail = useCallback(
Expand Down
Loading