Skip to content
Shop

CommunityJoin Our PatreonDonate

Sponsored Ads

Sponsored Ads

Let's Talk about a new type of Authentication

By The Tutorial Doctor, Fri July 26, 2024

Coming Soon

The Old Insecure Way

json
users = [
    {
        username: "john doe",
        password: "password"
    },
    {
        username: "john doe",
        password: "password"
    },
]

The New Secure Way

With the new way, the users sets the key AND the value. You no longer really need a unique id because the keys make the user unique. There is the chance that the user's may use the same credentials so an ID can be generated just in case. The user can use as many key value pairs as they would like. For companies, groups of could have part of the login credentials (perhaps like secret launch codes). This is a layered auth approach.

json
users = [
    {
        id: "SJSSJAAL82023",
        favorite_color: "john doe",
        last_name: "smith",
        dogs_favorite_toy: ""
    },
    {
        id: "SUS0039389203",
        my_car_make: "john doe",
        favorite_teacher: "mrs smith",
        wifes_moms_dads_name: "joe"
    },
    {
        id: "83829DSHSOUSOUD",
        favorite_color: "john doe",
        last_name: "smith",
        favorite_game: "chessmaster"
    }
]

The User Interface