projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
16848: Avoids showing API errors when the extra token creation fails.
[arvados-workbench2.git]
/
src
/
models
/
api-client-authorization.ts
diff --git
a/src/models/api-client-authorization.ts
b/src/models/api-client-authorization.ts
index 01a92017d54d9ae9b8323d101f549359208323d5..739485c5682aba2209aaf16547e47651a47db2e1 100644
(file)
--- a/
src/models/api-client-authorization.ts
+++ b/
src/models/api-client-authorization.ts
@@
-18,4
+18,7
@@
export interface ApiClientAuthorization extends Resource {
ownerUuid: string;
defaultOwnerUuid: string;
scopes: string[];
-}
\ No newline at end of file
+}
+
+export const getTokenV2 = (aca: ApiClientAuthorization): string =>
+ `v2/${aca.uuid}/${aca.apiToken}`;
\ No newline at end of file