Skip to content

Releases: colyseus/colyseus-haxe

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);
    }
})

0.15.2

19 Jun 18:07
Compare
Choose a tag to compare
add immediate mode for listen()

0.15.1

12 May 11:44
Compare
Choose a tag to compare
add only relevant files to final haxelib build colyseus/discussions#573

0.15.0

04 May 12:56
Compare
Choose a tag to compare
Merge branch '0.15'

0.14.10

13 Oct 11:49
1f5d455
Compare
Choose a tag to compare
bump version 0.14.10

0.14.9

19 Apr 22:11
Compare
Choose a tag to compare
bump version 0.14.9

0.14.8

23 Mar 18:01
Compare
Choose a tag to compare
bump version 0.14.8

0.14.7

26 Oct 19:12
Compare
Choose a tag to compare
closes #40

0.14.6

26 Oct 01:14
Compare
Choose a tag to compare
test #40 on a clean heaps project