@@ -14,12 +14,14 @@ func callback(c *gin.Context, apictx *ApiSession) (interface{}, error) {
token, err := casdoorsdk.GetOAuthToken(c.Query("code"), c.Query("state"))
if err != nil {
fmt.Println(err)
+ return err, nil
}
fmt.Println(token.AccessToken)
claims, err := casdoorsdk.ParseJwtToken(token.AccessToken)
fmt.Println(claims)
// c.Redirect(http.StatusFound, "https://auth.3dqueen.cloud")