This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
|
package middleware
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func extractToken(bearToken string) string {
|
|
strArr := strings.Split(bearToken, " ")
|
|
if len(strArr) == 2 {
|
|
return strArr[1]
|
|
}
|
|
return ""
|
|
}
|