UNPKG

mp_common

Version:

magicalpixi common lib

21 lines (19 loc) 472 B
module.exports = (key) => { var statics = require('./statics') return { browser: (userid, authid, auth, expire_time) => { return { [statics.user_id]: userid, [statics.auth_id]: authid, [statics.auth]: auth, [statics.expire_time]: expire_time } }, server: (server_key_seed) => { var encode = require('./encode')(key) return { [statics.server_key]: encode(server_key_seed) } } } }