Given I am signed in to the library's API as "user"

Sign the requests of webship-js's API steps (and of this pack's API steps) as an account: its bearer token, from the library's sign-in. Send them to the library with: Given the API base URL is "/".

Examples

Given I am signed in to the library's API as "user"
Given we are signed in to the library's API as "admin"
And I am signed in to the library's API as "newcomer"
Given I am signed in to the library's API as "editor"
Given we are signed in to the library's API as "user"

Pattern

Given(/^(?:I am|we are) signed in to the library's API as "([^"]+)"$/, …)

Part of @webship-js/immich-steps (github.com/webship/immich-steps), a step pack for Webship-js 2.0.x.