Skip to content

Releases: colyseus/colyseus-haxe

0.16.7

22 Apr 01:30
Compare
Choose a tag to compare
fix triggering OnAdd on existing key. colyseus/schema#197

0.16.6

21 Apr 14:19
Compare
Choose a tag to compare
instance onAuth(): fix forwarding auth.token to server.

0.16.5

05 Mar 17:51
Compare
Choose a tag to compare
@colyseus/schema: improve instance sharing and ref count tracking.

0.16.4

04 Mar 12:34
Compare
Choose a tag to compare
bump version

0.16.3

28 Feb 12:27
Compare
Choose a tag to compare
AirSDK: fix cache/storage support via flash.net.SharedObject

0.16.2

27 Feb 13:25
Compare
Choose a tag to compare
fix bad import. closes #65

0.16.1

27 Feb 01:19
Compare
Choose a tag to compare
bring back onChange on collections

0.16.0

17 Feb 13:26
Compare
Choose a tag to compare
bump version

0.15.4

30 Sep 17:50
Compare
Choose a tag to compare
bump version

0.15.3

18 Jan 13:08
Compare
Choose a tag to compare

Overview for Auth API:

Define callback for Auth state change:

client.auth.onChange(function (authData) {
	if (authData.user != null) {
		// logged in!
	} else {
		// logged out!
	}
});

Methods:

  • client.auth.getUserData()
  • client.auth.registerWithEmailAndPassword()
  • client.auth.signInWithEmailAndPassword()
  • client.auth.signInAnonymously()
  • client.auth.sendPasswordResetEmail()
  • client.auth.signOut()
  • (❌ OAuth not yet implemented) client.auth.signInWithProvider()

Example

client.auth.signInWithEmailAndPassword("[email protected]", "123456", function(err, authData) {
    if (err != null) {
      trace(err);
    } else {
      trace("TOKEN => " + authData.token);
      trace("USER => " + authData.user);
    }
})