Skip to content
This repository was archived by the owner on Aug 22, 2019. It is now read-only.
This repository was archived by the owner on Aug 22, 2019. It is now read-only.

Expired Meteor login tokens are not being handled correctly #96

@yvdorofeev

Description

@yvdorofeev

I've noticed that if meteor login token expires (user doesn't use the app for too long), Meteor.connect() function is not calling the callback.

The problem seems to be inside DDPExtensions.swift, resume(url: String, callback: DDPCallback?) function. Result of self.loginWithToken() call is not being used and, if it's false, callback is never called.

Looking at the code, seems like callback is also not being called if self.loginWithToken()'s callback gets error passed in.

We are currently testing a fix for this issue, I will submit a pull request once we're done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions