
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@liveart/auth
Advanced tools
Liveart authentication package for Stytch implementation.
Use the npm package manager to install the package into the project.
npm install @liveart/auth
Run init function to initialize the the workplace (reducer, token storage etc).
import { init } from '@liveart/auth';
import * as Keychain from 'react-native-keychain';
import { store } from './store';
...
init({
dispatch: store.dispatch,
storage: Keychain,
userServiceAddress: 'https://user-dev.liveart.ai',
})
Run init function to initialize the the workplace (reducer, token storage etc).
import { init } from '@liveart/auth';
import { store } from './store';
...
init({
dispatch: store.dispatch,
storage: localStorage,
userServiceAddress: 'https://user-dev.liveart.ai',
})
Attach reducer to your store
import { stytchReducer } from '@liveart/auth';
import { combineReducers } from '@reduxjs/toolkit';
...
const rootReducer = combineReducers({
...
stytch: stytchReducer,
...
});
Attach saga to the saga middleware
import { stytchSaga, stytchSignOut } from '@liveart/auth';
import createSagaMiddleware from 'redux-saga';
...
const sagaMiddleware = createSagaMiddleware()
sagaMiddleware.run(function* () {
yield all([
...
stytchSaga(),
...
]);
});
Configure Redux store
import { configureStore } from '@reduxjs/toolkit';
...
const store = configureStore({
...
middleware: (getDefaultMiddleware) => {
return getDefaultMiddleware({
serializableCheck: {
ignoredActions: [getSoldArtworksByArtistId.toString()],
},
}).concat(sagaMiddleware);
},
...
});
import { StytchStep, stytchStepSelector } from '@liveart/auth';
const stytchStep = useSelector(stytchStepSelector);
import {
StytchStep,
stytchStepSelector,
stytchEmailSignUp,
} from '@liveart/auth';
dispatch(
stytchEmailSignUp({
email: '<EMAIL@TEST.COM>',
name: {
firstName: '<FIRST_NAME>',
lastName: '<LAST_NAME>',
},
enableNewsletter: true,
termsAccepted: true,
}),
);
Exchange the core (which is received via email) for the accessToken
import { stytchStepSelector } from '@liveart/auth';
dispatch(
stytchEmailExchangeCode({
code: '<CODE>',
enableNewsletter: true,
termsAccepted: true,
}),
);
Create apollo client with the following configs
import { createApolloAuthenticationLink } from '@liveart/auth';
const client = new ApolloClient({
uri: '<APOLLO URI>',
link: createApolloAuthenticationLink(uri),
});
FAQs
LiveArt npm packages
The npm package @liveart/auth receives a total of 10 weekly downloads. As such, @liveart/auth popularity was classified as not popular.
We found that @liveart/auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.