Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

testでのauthJwtが何かおかしい #103

@Takeno-hito

Description

@Takeno-hito
public function test_test() {
        $count = 5;
        for($i = 0; $i < $count; ++$i) {
            $exh_users[] = AuthJwt::get_token($this, ['exhibition']);
            $hsh = substr($exh_users[$i]['auth_hdr']['Authorization'], 0, 15);
            echo "{$exh_users[$i]['user']->id}: {$hsh}\n";
        }
    }

を叩くと

tbrown: bearer eyJ0eXAi
cleffler: bearer eyJ0eXAi
spowlowski: bearer eyJ0eXAi
jennings18: bearer eyJ0eXAi
dereck.torp: bearer eyJ0eXAi

が返ってくる、うーん?

普通にこれは過去の議論でした、コメントん参照

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions