feat: add API token authentication (closes #87) #94
@@ -15,7 +15,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// tokenRandomBytes is the number of random bytes for token generation.
|
// tokenRandomBytes is the number of random bytes for token generation.
|
||||||
const tokenRandomBytes = 16
|
const tokenRandomBytes = 32
|
||||||
|
|
||||||
// tokenPrefix is prepended to generated API tokens.
|
// tokenPrefix is prepended to generated API tokens.
|
||||||
const tokenPrefix = "upaas_"
|
const tokenPrefix = "upaas_"
|
||||||
|
|||||||
Reference in New Issue
Block a user