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