Skip to content

How to change user name on cli when providing authenticated-user-header #7469

Closed Answered by linonetwo
linonetwo asked this question in Q&A
Discussion options

You must be logged in to vote

tiddly-gittly/TidGi-Desktop@7c1446f Use token in the header key, for example

export const TIDGI_AUTH_TOKEN_HEADER = 'x-tidgi-auth-token';
export const getTidGiAuthHeaderWithToken = (adminToken: string) => `${TIDGI_AUTH_TOKEN_HEADER}-${adminToken}`;


const tokenAuthenticateArguments = [`authenticated-user-header=${getTidGiAuthHeaderWithToken(adminToken)}`, `readers=${userName}`, `writers=${userName}`];

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by linonetwo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant