daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Jul 21st, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { getAuthLevel } from './auth';
  2.  
  3. export default store => next => action => {
  4.   return next({...action, auth: getAuthLevel(action.clientId)});
  5. }
  6.    
  7. {
  8. users: [{
  9.   clientId: 'bobsUnqiueClientId',
  10.   user: 'Bob',
  11.   password: 'ilikecats',
  12.   authlevel: 'OVERLORD'
  13. }, {
  14.   clientId: 'anotherUniqueClientId',
  15.   user: 'Alice',
  16.   password: 'boblikescats',
  17.   authlevel: 'MINION'
  18. }]}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top