Published on

Update: Late January to Early February 2022

Authors

Late January to Early February

From late January, the sixth wave of COVID kept me mostly at home, so I had a relatively large amount of time to work.

I've also been chipping away at "Writing Your Own OS in 30 Days" on and off since the new year, and I'm down to the last two chapters. I started it as a winter break project, and it looks like it's about to run into spring break, but let's not worry about that.

I've also decided to make this a year of input, so I bought a BOOX Leaf. The O'Reilly book I'm reading right now, Software Engineering at Google, is quite a long one (684 pages), so I'm hoping the excitement of a new device will give me the push to keep reading.

Development Status

Changes to the Authentication System

Last year I wrote an article titled The Pitfalls of Magic Link Authentication, and this is the proper fix for that problem.

Firebase also has other issues, like the one described in My Struggle with the "Unable to process request..." Error in Firebase Authentication, so I'd been wanting to switch away from it sooner rather than later.

This time I decided to go with AWS Cognito. I'm also dropping email link authentication, so sign-in will now be password-based.

I also took this opportunity to drop Twitter and Facebook login. For Android/iPhone users, Google/Apple login should be plenty, and I didn't think supporting Twitter/Facebook login was worth the unnecessary maintenance risk. (With Twitter/Facebook login, if someone registered their account with a phone number, we can't get their email address. Not having to handle that case makes the logic simpler, too.)

Switching to AWS also fixed the problem where emails took a long time to arrive during email link authentication. Signing in is gradually getting easier.

DB Migration

Since I'm no longer using Firebase Authentication, the DB also needed to move to a different service.

As decided in the DB selection in last November's post, I'm going with MongoDB. Responses are quite fast, and the time it takes to render pages has gone down as a result (though since every page except My Page and the admin pages has its HTML generated in advance, you won't notice much of a difference...). Security has also improved significantly (I'll skip the details).

A Library for Parsing Phone Numbers

I made a library called jp-phone-parser, which parses Japanese phone numbers, including partial strings, into a delimited format.

If you want to attach it to an input via a selector or use it as a React component, there's Cleave, but since I'm currently using Chakra UI, I wanted a simple parsing library if possible, so I built one. It's super lightweight and I'm happy with it, but given that super handy tools like the one above exist, I think it's mainly for people who fall into the same edge case as me.

It's tested against every phone number pattern in use, so it works without any problems. Feel free to use it if you like.

Plans for Late February

Apart from my day job, I'm currently involved in three development projects (auditorium, RANDOM SOUND COLLECTIVE, and a private project). The latter two have reached a stopping point for now, so I can focus on auditorium at the moment.

Last year (especially the second half), I couldn't really put my full effort into auditorium, so this year I want to get properly stuck in.