mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-17 21:53:03 +05:30
jwt токен после успешной авторизации
This commit is contained in:
parent
8b3e57925c
commit
31d94ae770
@ -77,11 +77,13 @@ export function activate({key = ''}) {
|
|||||||
'/api/signup/confirm',
|
'/api/signup/confirm',
|
||||||
{key}
|
{key}
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then((resp) => {
|
||||||
dispatch(updateUser({
|
dispatch(updateUser({
|
||||||
isActive: true
|
isActive: true
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
dispatch(authenticate(resp.jwt));
|
||||||
|
|
||||||
dispatch(redirectToGoal());
|
dispatch(redirectToGoal());
|
||||||
})
|
})
|
||||||
.catch((resp) => {
|
.catch((resp) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user