How to make a custom login/signup UI with Next.js? (not using universal flow)

Thanks. Is there anything I need to do beyond just calling the signup and login endpoints? I.e. for login I assume I would need to cache the access_token or something like that? Do you know of a good tutorial for this? Thanks for your help and response!!