Skip to content

Instantly share code, notes, and snippets.

View bhdryrdm's full-sized avatar
🏠
Working from home

Bahadır YARDIM bhdryrdm

🏠
Working from home
View GitHub Profile
@mbasaran
mbasaran / CustomSwagger.js
Created August 28, 2018 23:53
Add bearer token automatically to Swagger UI using Swashbuckle Asp.Net Core
(function () {
function getJwt(user, pass, success, error, complete) {
console.log('getJwt ', user);
$.ajax({
url: '/api/login',
type: 'POST',
contentType: "application/json",
dataType: "json",
data: JSON.stringify({