Skip to content

Commit b7aeff5

Browse files
committed
fixes #160
1 parent 075c287 commit b7aeff5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/token/auth_token.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"encoding/json"
55
"fmt"
66
"log"
7-
"os"
87
"strings"
98
"time"
109

@@ -318,7 +317,7 @@ func CreateIDToken(user models.User, roles []string, hostname, nonce string) (st
318317
}
319318

320319
// check for the extra access token script
321-
accessTokenScript := os.Getenv(constants.EnvKeyCustomAccessTokenScript)
320+
accessTokenScript := envstore.EnvStoreObj.GetStringStoreEnvVariable(constants.EnvKeyCustomAccessTokenScript)
322321
if accessTokenScript != "" {
323322
vm := otto.New()
324323

0 commit comments

Comments
 (0)