Creating a login / signup plugin

Hello I am creating a kakao plugin where the user will login / register themselves. I have created the functionality to prompt the user and get the users data but how can I tell bubble to accept the data as a new user and automatically log them in?