+
REST API Tokens
+
+ You can create/manage your tokens here for using FOSSology's REST API.
+
+
+
Create a new token
+
+
+
+
+ Active access tokens ({activeAccessTokens.length})
+
+
+
+
+ Token name |
+ Created on |
+ Expiry |
+ Scope |
+ Action |
+
+
+
+ {activeAccessTokens.map((token) => {
+ return (
+
+ {token.name} |
+ {token.created} |
+ {token.expire} |
+ {token.scope === "w" ? "read/write" : "read-only"} |
+
+
+ |
+
+ );
+ })}
+
+
+
+
+
+
+ Expired access tokens ({expiredAccessTokens.length})
+
+
+
+
+ Token name |
+ Created on |
+ Expired |
+ Scope |
+ Action |
+
+
+
+ {expiredAccessTokens.map((token) => {
+ return (
+
+ {token.name} |
+ {token.created} |
+ {token.expire} |
+ {token.scope === "w" ? "read/write" : "read-only"} |
+
+
+ |
+
+ );
+ })}
+
+
+
+
+ >
+ );
+};
+
+const ValidateForm = ({
+ handleChange,
+ handleSubmit,
+ newTokenInfo,
+ loading,
+}) => {
+ return (
+