• 0 Posts
  • 28 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle











  • As someone who switched from another domain to tech, I suggest trying to reason through your hesitation to switch away. Do you want to stay in tech because you like tech or because you’re afraid of “giving up”?

    In my other domain, I worked hard and did OK, but not stellar. In tech however, it’s a completely different story. The other domain was “cool”, and I don’t regret what I learned along the way, but tech clearly comes easier to me compared to someone doing well in the other domain.

    You need to be honest with yourself before you make the decision to switch. Are you running away from tech or towards something else?





  • Here’s a simple approach:

    • Basic auth via a custom header, like X-Auth
    • JWT auth on Authorization header
    • uuid on the JWT (as a claim) that gets stored temporarily (until it expires) to allow the server to revoke the token

    Initial request -> server looks for Authorization header, falls back to X-Auth header -> generates JWT and sends back to client in Authorization header (or whatever makes sense)

    Subsequent request -> server looks for Authorization header -> checks JWT against revocation database/table and that it isn’t expired

    Subsequent request with expired token -> server returns 401, client retries using X-Auth header -> server sends back JWT on Authorization header -> client updates locally-stored JWT for future requests

    There are probably ways to make this more standard or optimal, but this is a simple approach.



  • DeprecatedCompatV2@programming.devtoMemes@lemmy.mlEVs
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    I usually visit my closest city for one of two reasons: 1) I have some kind of appointment or 2) I know some who lives there. Right now I’m able to drive there and park on the street. What should my alternative be once the city is “hostile” to cars? Remember, I live 30+ minutes away by car and take a highway to get there.


  • No they didn’t. They tore up railroad lines and got rid of reliable public transportation. You claim to support the environment, but you’re talking about replacing undeveloped land or farmland with a train. There isn’t enough traffic here to saturate a normal 2-lane road, much less a damn train.