dev-xo / remix-auth-totp

A Time-Based One-Time Password (TOTP) Authentication Strategy for Remix-Auth.
https://totp.fly.dev
MIT License
418 stars 28 forks source link

[ Fix] Protocol for local environments. #7

Closed w00fz closed 1 year ago

w00fz commented 1 year ago

Currently the getBaseUrl function is not working for local environments that have a port other than 80. The Host header can optionally include that. My bad!

This fixes #6 by properly addressing the issue and also adds tests to ensure it won't fail again.

dev-xo commented 1 year ago

Again and again @w00fz ! Thanks you! <3