删除流星身份验证令牌登录 [英] Remove login tokens for meteor auth

查看:135
本文介绍了删除流星身份验证令牌登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道这已被要求使大小我的数据库增加,但 loginTokens 越来越真正的大,没有任何清理之前。正在做什么样?什么人在做管理此。我指的是默认的 Meteor.users.services 有loginTokens数组,获得创建每次用户登录/退出

 简历:{
        loginTokens:[
            {
                令牌:HMntXepqzPBLDGkGX
                当:1372559065392
            },
            {
                令牌:uCHqA95HZZyN5tRtH
                当:1372563545565
            },
            {
                令牌:sNGZhhATTrTg8582w
                当:1372622561176
            },
            {
                令牌:hPWpm4uQQXWrkK6NS
                当:1372634411432
            },
            {
                令牌:DFntTEcsKKT6bJ3rx
                当:1372635411745
            },
            {
                令牌:BBM3acLQhuNtsHvkn
                当:1372638979158
            },
            {
                令牌:EHgLLHMh6JWxKfuoe
                当:1372825386462
            }
        ]
    }


解决方案

仅供参考,我没有就这个问题,并且存在着修复它挂起拉的请求:

https://github.com/meteor/meteor/issues/891

I am not sure if this has been asked before but the loginTokens are getting really large and without any cleanup make my database increase in size. What is being done about this? what are others doing to manage this. I am referring to the default Meteor.users.services which has an array of loginTokens that get created every time the user logs in/out

"resume" : {
        "loginTokens" : [
            {
                "token" : "HMntXepqzPBLDGkGX",
                "when" : 1372559065392
            },
            {
                "token" : "uCHqA95HZZyN5tRtH",
                "when" : 1372563545565
            },
            {
                "token" : "sNGZhhATTrTg8582w",
                "when" : 1372622561176
            },
            {
                "token" : "hPWpm4uQQXWrkK6NS",
                "when" : 1372634411432
            },
            {
                "token" : "DFntTEcsKKT6bJ3rx",
                "when" : 1372635411745
            },
            {
                "token" : "BBM3acLQhuNtsHvkn",
                "when" : 1372638979158
            },
            {
                "token" : "EHgLLHMh6JWxKfuoe",
                "when" : 1372825386462
            }
        ]
    }

解决方案

FYI, I did file an issue on this and there is a pending pull request that fixes it:

https://github.com/meteor/meteor/issues/891

这篇关于删除流星身份验证令牌登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆