Skip to content

Commit a61df49

Browse files
committed
feat: bitbucket cloud support
Signed-off-by: Adam Setch <[email protected]>
1 parent 64df440 commit a61df49

File tree

3 files changed

+232
-54
lines changed

3 files changed

+232
-54
lines changed

src/routes/__snapshots__/Accounts.test.tsx.snap

Lines changed: 130 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routes/__snapshots__/Login.test.tsx.snap

Lines changed: 92 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/auth/utils.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ export async function addAccount(
139139
token: token,
140140
} as Account;
141141

142+
// TODO - find a better way to pass the username through
143+
if (username) {
144+
newAccount.user = {
145+
id: 0,
146+
login: username,
147+
name: username,
148+
avatar: '' as Link,
149+
};
150+
}
151+
142152
newAccount = await refreshAccount(newAccount);
143153

144154
return {

0 commit comments

Comments
 (0)