The encoded ID payload gets destroyed by the authenticator, which caused a segmentation fault after the switch. Fixes #501.