Authentication
You may want to use mautrix-manager instead of bot commands. It will automate extracting cookies so you don't need to mess with browser devtools.
- Open a private chat with the bridge bot. Usually
@linkedinbot:your.server- If the bot doesn't accept the invite, see the troubleshooting page
- Send
loginto start the login. - Open the website in a private window and login normally.
- Note: you should either use Chrome or at least change your user agent to match the one used by the bridge (https://github.com/mautrix/linkedin/blob/main/pkg/linkedingo/client.go#L30), as LinkedIn doesn't like cookies being used by different user agents.
- Open browser devtools, go to the network tab, select "XHR" as the request
type and search for
graphql. Right click one of the requests and choose "Copy", then "Copy as cURL". - Paste the copied cURL string to the bot.
- The bot should inform you of a successful login and bridge recent chats.