
Welcome to Powerblock Auth, the simple way to authenticate clients with Nakama!
Test the example project here
This guide will help you get setup!
To install download from the GitHub releases (here) and add the addons folder to your project in Godot!
Nakama.gd file (found in addons/com.heroiclabs.nakama/Nakama.gd) as an autoload in settingsNakamaManager.gd file and the PowerblockAuth.gd file as autoloads as wellNow your autloads should look like this:

NakamaManager.gd file and change the constants at the top to match your servers informationawait NakamaManager.connect_to_nakama(PowerblockAuth.AuthMethods.authmethod) change authmethod to which ever method you would like to use to authenticate your client. As of now only email and deviceID work. Both are supported on web.extends Node
func _ready() -> void:
await NakamaManager.connect_to_nakama(PowerblockAuth.AuthMethods.EMAIL)
If you want to customize the look of the email authentication screen you may but please keep our logo visible. You can accomplish this using the plugins functions like so:
`
PowerblockAuth.set_branding(load(“res://icon.svg”), Color(0.0, 1.0, 0.0, 1.0))
make sure to do this BEFORE you call connect_to_nakama()` or it won’t take effect!
We made this handy template to make sure you keep everything in the right spot:

Put ANYTHING you want in the green space, but make sure to keep NOTHING in the red space
Loading icon from GD Shaders