aboutsummaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/service.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/service/service.go b/service/service.go
index db851f7..c9fccb4 100644
--- a/service/service.go
+++ b/service/service.go
@@ -106,8 +106,14 @@ func (svc *service) GetAuthUrl(ctx context.Context, instance string) (
instanceURL = "https://" + instance
}
- sessionID = util.NewSessionId()
- csrfToken := util.NewCSRFToken()
+ sessionID, err = util.NewSessionId()
+ if err != nil {
+ return
+ }
+ csrfToken, err := util.NewCSRFToken()
+ if err != nil {
+ return
+ }
session := model.Session{
ID: sessionID,
InstanceDomain: instance,