func (m *Mongore) DecodeToken(key string, t interface{}) error { conn, err := db.Conn() if err != nil { return err } defer conn.Close() return conn.GetTokenValue(key, t) }
func (m *Mongore) DeleteToken(key string) error { conn, err := db.Conn() if err != nil { return err } defer conn.Close() _, err = conn.DeleteToken(key) return err }